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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x74]
cmp eax, dword [ecx + 8]
jbe 0x5d0b58
sub esp, 0xf4
mov eax, 0
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov byte [esp + 0x2b], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov eax, dword [esp + 0xf8]
mov dword [esp], eax
mov ecx, dword [esp + 0xfc]
mov dword [esp + 4], ecx
call fcn.005cf2f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 8]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], edx
test ecx, ecx
jne 0x5d04a7
mov dword [esp + 0x64], ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x5d0bb0]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0xf0], ecx
mov byte [esp + 0x2b], 1
lea edi, [esp + 0xc0]
xor eax, eax
call fcn.00468275
mov dword [esp + 0xc0], 0x2c
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx + 0x28]
mov ebp, dword [ecx + 0x24]
test edx, edx
jne 0x5d0471
mov dword [esp + 0x4c], 0
mov dword [esp + 0x4c], 1
mov edx, 1
lea ebp, [esp + 0x4c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x70], ebp
lea eax, [0x657a00]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], edx
call fcn.0044d740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x70]
mov ebx, ecx
xor ebp, ebp
xor esi, esi
jmp 0x5d04ea
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
add esp, 0xf4
ret
mov ecx, dword [esp + 0x50]
inc ecx
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x70]
mov edx, esi
mov esi, ebx
mov ebx, dword [esp + 0x38]
mov edi, ebp
mov ebp, ecx
mov ecx, edi
cmp ebp, ebx
jge 0x5d05c8
mov edi, dword [edx + ebp*4]
test edi, edi
je 0x5d05c4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], esi
mov eax, dword [0x83771c]
lea ecx, [0x663fe0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.0040ed60
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, dword [eax]
test cl, cl
je 0x5d05b3
mov ebx, dword [eax + 4]
test ebx, ebx
jbe 0x5d0b42
mov ebx, dword [esp + 0x2c]
inc ebx
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
jb 0x5d0556
mov eax, dword [esp + 0x68]
jmp 0x5d0592
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x657a00]
mov dword [esp + 0x10], eax
call fcn.0044d800
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov ebp, ecx
mov ecx, dword [0x85d680]
test ecx, ecx
je 0x5d05aa
call fcn.00468040
mov dword [edi], edx
mov ecx, dword [eax + ebx*4 - 4]
mov dword [edi + 4], ecx
mov dword [eax + ebx*4 - 4], edx
jmp 0x5d04cf
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x68]
jmp 0x5d04cf
xor eax, eax
xor esi, esi
test eax, eax
je 0x5d05ef
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc8], esi
test esi, esi
jbe 0x5d0b39
mov dword [esp + 0xcc], eax
jmp 0x5d0610
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov ecx, dword [esp + 0xfc]
lea esi, [ecx + 0x10]
mov dword [esp + 0x84], esi
lea edi, [esp + 0xac]
call fcn.0046875e
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
test ecx, 0x80000000
je 0x5d0667
shl ecx, 1
mov ebx, edx
shl edx, 1
mov ebp, ebx
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
shl ebx, 1
shr edx, 0x1f
or edx, ebx
shr ecx, 0x1f
add edx, 0xd7b17f80
adc ecx, 0xd
jmp 0x5d0679
mov ebx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
mov ebp, edx
mov edx, ebx
test edx, edx
sete dl
test ecx, ecx
sete cl
and ecx, edx
test cl, cl
je 0x5d0694
test ebp, 0x3fffffff
sete cl
jmp 0x5d0696
xor ecx, ecx
xor ecx, 1
test cl, cl
je 0x5d0767
lea edi, [esp + 0x98]
mov esi, dword [esp + 0x84]
call fcn.0046875e
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
test ecx, 0x80000000
je 0x5d06ee
mov ebx, edx
shl edx, 1
shl ecx, 1
mov ebp, ebx
shr ebx, 0x1f
or ecx, ebx
mov ebx, ecx
shl ecx, 1
shr edx, 0x1f
or edx, ecx
shr ebx, 0x1f
add edx, 0xd7b17f80
adc ebx, 0xd
jmp 0x5d0700
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov ebp, edx
mov edx, ecx
imul ecx, ebx, 0x3b9aca00
mov eax, 0x3b9aca00
mul edx
add ecx, edx
and ebp, 0x3fffffff
mov edx, ebp
sar ebp, 0x1f
add eax, edx
adc ecx, ebp
add eax, 0x3d1a0000
adc ecx, 0xa1b203eb
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x64
call fcn.0045fa50
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add ecx, 0xd53e8000
mov dword [esp + 0x54], ecx
adc edx, 0x19db1de
mov dword [esp + 0x58], edx
lea eax, [esp + 0x54]
jmp 0x5d0769
xor eax, eax
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 0x10]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], 0
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], eax
call fcn.0049b860
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
test edx, edx
jne 0x5d0950
mov eax, dword [esp + 0x60]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea ecx, [0x5d0b70]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x88]
mov dword [esp + 0xec], eax
mov byte [esp + 0x2b], 3
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xf8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 8], eax
call fcn.005cff30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x80], ebp
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
test eax, eax
jne 0x5d0910
mov edi, dword [esp + 0x108]
mov eax, dword [esp + 0x104]
inc eax
mov esi, dword [esp + 0x100]
cmp edi, eax
jae 0x5d08da
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x74], ecx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], 1
lea eax, [0x65a500]
mov dword [esp + 0x10], eax
call fcn.0044d800
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x108], eax
mov dword [esp + 0x100], esi
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x80]
mov eax, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x104], eax
lea edi, [eax + eax*2]
mov dword [esi + edi*4 - 8], edx
mov dword [esi + edi*4 - 4], ebx
mov ebx, dword [0x85d680]
test ebx, ebx
je 0x5d0908
mov eax, edi
call fcn.00468040
mov dword [edi], ecx
mov ebx, dword [esi + eax*4 - 0xc]
mov dword [edi + 4], ebx
mov edi, eax
mov dword [esi + edi*4 - 0xc], ecx
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
jbe 0x5d0988
jl 0x5d0b34
mov eax, 4
mul ebx
jo 0x5d0b23
mov edi, dword [ecx + 0x18]
mov edx, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
cmp eax, edi
ja 0x5d0b23
mov dword [esp + 0x34], ebx
mov dword [esp + 0x7c], edx
xor eax, eax
jmp 0x5d0a40
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov byte [esp + 0x2b], 0
mov edx, dword [esp + 0xf0]
mov eax, dword [edx]
call eax
add esp, 0xf4
ret
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x5d09e9
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], esi
mov byte [esp + 0x2b], 1
mov edx, dword [esp + 0xec]
mov eax, dword [edx]
call eax
mov byte [esp + 0x2b], 0
mov edx, dword [esp + 0xf0]
mov eax, dword [edx]
call eax
add esp, 0xf4
ret
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov byte [esp + 0x2b], 1
mov edx, dword [esp + 0xec]
mov eax, dword [edx]
call eax
mov byte [esp + 0x2b], 0
mov edx, dword [esp + 0xf0]
mov eax, dword [edx]
call eax
add esp, 0xf4
ret
mov ecx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x5c]
cmp eax, ebx
jge 0x5d0988
mov dword [esp + 0x50], eax
mov ecx, dword [edx + eax*4]
mov ebx, dword [esp + 0xf8]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 8], ecx
call fcn.005cff30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x5d0a26
mov eax, dword [esp + 0x108]
mov ebp, dword [esp + 0x104]
inc ebp
mov esi, dword [esp + 0x100]
cmp eax, ebp
jae 0x5d0aef
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x78], ecx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x65a500]
mov dword [esp + 0x10], eax
call fcn.0044d800
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x108], eax
mov dword [esp + 0x100], esi
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x104], ebp
lea eax, [ebp + ebp*2]
mov dword [esi + eax*4 - 8], edx
mov dword [esi + eax*4 - 4], ebx
mov ebx, dword [0x85d680]
test ebx, ebx
je 0x5d0b1a
call fcn.00468040
mov dword [edi], ecx
mov ebx, dword [esi + eax*4 - 0xc]
mov dword [edi + 4], ebx
mov dword [esi + eax*4 - 0xc], ecx
jmp 0x5d0a26
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x5d0b2f
call fcn.0045f0e0
call fcn.0045f170
call fcn.0045f0e0
xor eax, eax
mov ecx, eax
call fcn.00468090
xor eax, eax
mov ecx, eax
call fcn.00468090
nop
call fcn.004373e0
add esp, 0xf4
ret
call fcn.00466c30
jmp fcn.005d0340