Function at 0x5c0370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x54]
cmp eax, dword [ecx + 8]
jbe 0x5c0f0f
sub esp, 0xd4
mov ecx, dword [esp + 0xe4]
test ecx, ecx
je 0x5c0431
nop
movzx edx, byte [0x7a1de0]
test dl, dl
je 0x5c03e5
mov edx, dword [esp + 0xe4]
mov dword [0x7a1de4], edx
mov ebx, dword [0x7c78f0]
test ebx, ebx
jne 0x5c03d1
mov eax, dword [esp + 0xe8]
mov dword [0x7a1de8], eax
jmp 0x5c03f3
lea edi, [0x7a1de8]
mov eax, dword [esp + 0xe8]
call fcn.00463730
jmp 0x5c03f3
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x5c0427
nop
movzx ebx, byte [ecx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x5c0423
or ebx, 0x80
mov ebp, eax
jmp 0x5c0445
mov ebp, eax
xor ebx, ebx
xor ecx, ecx
xor eax, eax
jmp 0x5c0445
mov edx, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe8]
xor ebx, ebx
xor ecx, ecx
xor eax, eax
nop
mov esi, ebx
and ebx, 0x1f
cmp ebx, 0x16
jne 0x5c047c
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004bc180
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe8]
mov esi, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
nop
nop
mov ebx, dword [esp + 0xf4]
test ebx, ebx
je 0x5c04b6
test ebx, 0x200
jne 0x5c04b6
lea edi, [0x663100]
mov edi, dword [esp + 0xec]
mov dword [esp + 0x68], edi
lea edi, [0x663100]
jmp 0x5c04e2
mov eax, dword [esp + 0xec]
mov dword [esp], eax
mov ecx, dword [esp + 0xf0]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004be9f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x30], edi
mov eax, dword [edi + 0x28]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x54]
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
call fcn.004b91c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0xec]
mov dword [esp], ebx
mov ebp, dword [esp + 0xf0]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xf4]
mov dword [esp + 8], esi
mov byte [esp + 0xc], 1
call fcn.004bc5d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x9c], ecx
mov edx, dword [esp + 0xf4]
test edx, edx
je 0x5c05b4
test edx, 0x200
jne 0x5c05b4
lea ebx, [0x663100]
mov ebp, dword [esp + 0xec]
jmp 0x5c05de
mov eax, dword [esp + 0xec]
mov dword [esp], eax
mov ecx, dword [esp + 0xf0]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004be9f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov ebp, ecx
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004bf750
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004bc5d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
cmp dword [esp + 0x10], ecx
je 0x5c0620
xor eax, eax
jmp 0x5c063c
mov dword [esp], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00403770
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, ecx
and ecx, 0x1f
mov dword [esp + 0x60], ecx
test al, al
jne 0x5c0678
mov eax, dword [esp + 0xd8]
mov ebx, dword [eax]
movzx ebx, byte [ebx + 0xa]
test bl, bl
jne 0x5c067f
mov ebx, dword [esp + 0xf4]
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
jmp 0x5c0978
mov eax, dword [esp + 0xd8]
cmp ecx, 0x11
je 0x5c08e1
cmp ecx, 0x17
je 0x5c08e1
mov ebx, dword [eax]
movzx ebx, byte [ebx + 0xb]
test bl, bl
je 0x5c0811
cmp ecx, 0x15
jne 0x5c0740
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004bcca0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5c0811
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.004bf750
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xec]
mov dword [esp], ebx
mov ebx, dword [esp + 0xf0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xf4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004bd9d0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
add esp, 0xd4
ret
lea eax, [0x5de3a0]
mov dword [esp], eax
call fcn.0040bd40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xe4]
mov dword [eax], ecx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x5c0771
mov ecx, dword [esp + 0xe8]
mov dword [eax + 4], ecx
jmp 0x5c0784
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0xe8]
call fcn.00463730
mov eax, ecx
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00409700
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xd8]
mov dword [esp], ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 8], ecx
lea ecx, [0x5db260]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x1c], eax
call fcn.005c0370
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
add esp, 0xd4
ret
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 4], eax
call fcn.00409680
mov eax, dword [esp + 8]
lea ecx, [0x5e1fa0]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00409570
mov eax, dword [esp + 4]
lea ecx, [0x5e4380]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
lea eax, [0x61bf62]
mov dword [esp], eax
mov dword [esp + 4], 0x33
lea eax, [esp + 0xac]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004c4b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
add esp, 0xd4
ret
cmp ecx, 0x17
jne 0x5c08ef
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx + 4]
jmp 0x5c090b
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004bcca0
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x54]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x3c]
cmp dword [esp + 4], eax
jl 0x5c09c5
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.004bf830
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004bc180
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, edx
mov ebp, eax
mov esi, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebp
lea eax, [0x5e1fa0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044a130
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
xor esi, esi
xor edi, edi
xor esi, esi
mov dword [esp + 0x50], esi
jmp 0x5c0b13
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x60]
cmp ecx, 0x17
jne 0x5c09f2
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 4]
jmp 0x5c0a12
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
call fcn.004bcca0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0xbc]
xor eax, eax
call fcn.0046395a
mov ecx, dword [esp + 0xdc]
mov dword [esp], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 4], ecx
call fcn.00409680
mov ecx, dword [esp + 8]
lea edx, [0x5e1fa0]
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
call fcn.00409570
mov ecx, dword [esp + 4]
lea edx, [0x5e17a0]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call fcn.00409570
mov ecx, dword [esp + 4]
lea edx, [0x5e17a0]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], ecx
lea ecx, [0x61d80b]
mov dword [esp], ecx
mov dword [esp + 4], 0x45
lea ecx, [esp + 0xbc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004c4b50
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], edx
add esp, 0xd4
ret
mov eax, dword [esp + 0x48]
lea esi, [eax + 1]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x70]
mov edi, edx
mov dword [esp + 0x50], ebx
mov eax, ebp
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x48], esi
cmp ecx, 0x17
jne 0x5c0b2c
mov ecx, dword [ebx + 4]
jmp 0x5c0b5b
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004bcca0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
cmp esi, ecx
jge 0x5c0e51
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
call fcn.004bc420
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004bc5d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x48]
mov dword [esp + 0xc], esi
call fcn.004bc420
mov eax, dword [esp + 0x10]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x94], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x48]
mov ebp, ebx
sar ebx, 0x1f
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.004abcf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], 0
mov edx, dword [esp + 0xdc]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0xe0]
mov dword [esp + 8], ebx
lea ebp, [0x661160]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [0x661164]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call fcn.0044dd50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xd8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
call fcn.005b8580
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x5c0ce2
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x88]
jmp 0x5c0aec
test ecx, ecx
je 0x5c0db7
lea ecx, [0x661b20]
cmp ebx, ecx
jne 0x5c0db7
mov eax, dword [edx + 4]
mov ebx, dword [esp + 0x4c]
lea ebp, [ebx + eax]
mov edx, dword [edx]
mov esi, dword [esp + 0x50]
cmp esi, ebp
jb 0x5c0d15
mov edi, dword [esp + 0x88]
jmp 0x5c0d64
mov dword [esp + 0x90], edx
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
lea ecx, [0x5e1fa0]
mov dword [esp + 0x10], ecx
call fcn.0044a1f0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x4c]
mov esi, ecx
mov edi, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x64], edi
lea ecx, [0x5e1fa0]
mov dword [esp], ecx
sub esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ebx, 3
sar esi, 0x1f
and ebx, esi
add ebx, edi
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
sub ebp, ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.00410970
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x64]
jmp 0x5c0aec
mov eax, dword [eax + 0x10]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x4c]
inc edx
mov ebx, dword [esp + 0x50]
cmp ebx, edx
jb 0x5c0ddd
mov ebp, dword [esp + 0x88]
jmp 0x5c0e2c
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5e1fa0]
mov dword [esp + 0x10], eax
call fcn.0044a1f0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov ebx, ecx
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x5c]
lea esi, [ebp + edx*8 - 4]
mov dword [esi], ecx
lea edi, [ebp + edx*8 - 8]
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x5c0e47
mov dword [edi], eax
jmp 0x5c0aec
call fcn.00463730
jmp 0x5c0aec
mov eax, dword [esp + 0xec]
mov dword [esp], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
call fcn.004bd9d0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x5c0ef2
lea eax, [0x5e8520]
mov dword [esp], eax
call fcn.0040bd40
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x4c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 8], eax
mov eax, dword [0x7c78f0]
test eax, eax
jne 0x5c0ecb
mov eax, dword [esp + 0x88]
mov dword [edi], eax
jmp 0x5c0ed7
mov eax, dword [esp + 0x88]
call fcn.00463730
lea eax, [0x661b20]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], edi
add esp, 0xd4
ret
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
add esp, 0xd4
ret
call fcn.00462320
jmp fcn.005c0370