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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x110]
cmp eax, dword [ecx + 8]
jbe 0x5d3a83
sub esp, 0x190
mov eax, dword [esp + 0x198]
test eax, eax
je 0x5d319f
mov eax, dword [eax + 8]
cmp eax, 0x9eaa9ae
jne 0x5d3169
mov eax, dword [esp + 0x198]
lea ecx, [0x618800]
cmp eax, ecx
jne 0x5d3197
mov eax, dword [esp + 0x19c]
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
xor ebx, ebx
jmp 0x5d31a5
cmp eax, 0x4b6059d3
jne 0x5d3197
mov eax, dword [esp + 0x198]
lea ecx, [0x618580]
cmp eax, ecx
jne 0x5d3197
mov edx, dword [esp + 0x19c]
mov ebx, dword [edx]
test ebx, ebx
sete bl
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0xc]
jmp 0x5d31a5
xor ebx, ebx
xor ecx, ecx
xor eax, eax
jmp 0x5d31a5
xor ebx, ebx
xor ecx, ecx
xor eax, eax
mov byte [esp + 0x27], bl
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x194]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], bl
call fcn.005d1b50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x5d335d
mov dword [esp + 0x154], ebp
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x194]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 8], ecx
movzx ecx, byte [esp + 0x27]
mov byte [esp + 0xc], cl
call fcn.005d1b50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x5d3327
test ebx, ebx
jne 0x5d328b
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x5d3297
mov eax, dword [0x854c00]
mov ecx, dword [0x854c04]
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], ecx
add esp, 0x190
ret
mov eax, edx
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x5d32a2
mov ecx, edx
mov eax, ecx
mov edx, dword [esp + 0x154]
jmp 0x5d32ac
test ebx, ebx
je 0x5d32f1
mov eax, edx
mov edx, ebp
mov ecx, ebx
mov dword [esp + 0x148], edx
mov dword [esp + 0x158], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x194]
xor edi, edi
xor edi, edi
mov dword [esp + 0x2c], edi
xor edi, edi
mov dword [esp + 0x34], edi
xor edi, edi
mov dword [esp + 0x38], edi
lea edi, [0x87ba98]
mov dword [esp + 0x150], edi
xor edi, edi
jmp 0x5d33cc
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], eax
add esp, 0x190
ret
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], edx
add esp, 0x190
ret
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], edx
add esp, 0x190
ret
mov edi, dword [esp + 0x40]
inc edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x148]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x150], ebp
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x158]
mov esi, dword [esp + 0x194]
cmp ecx, edi
jbe 0x5d3861
mov dword [esp + 0x40], edi
lea edi, [esp + 0x168]
xor eax, eax
call fcn.00462936
mov ecx, dword [esp + 0x40]
mov edi, ebp
lea ebp, [ecx + ecx*2]
mov dword [esp + 0x54], ebp
mov ebx, dword [edx + ebp*4]
test ebx, ebx
seta bl
mov edx, dword [edx + ebp*4 + 4]
test edx, edx
xchg ebp, ebx
seta bl
xchg ebp, ebx
sete cl
and ecx, ebx
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5d36bd
and edx, 0x80000000
test edx, edx
jbe 0x5d350c
mov byte [esp + 0x172], 1
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x148]
mov ebx, dword [edx + ecx*4]
and ebx, 0xffff
mov dword [esp + 0x174], ebx
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
cmp ebx, ebp
jae 0x5d348b
mov ebp, dword [esp + 0x154]
mov edx, dword [ebp + ecx*4 + 4]
mov eax, dword [ebp + ecx*4]
mov dword [esp + 0x178], eax
mov dword [esp + 0x17c], edx
mov eax, dword [ebp + ecx*4 + 8]
mov dword [esp + 0x18c], eax
xor eax, eax
mov edx, dword [esp + 0x148]
mov ebp, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
jae 0x5d34b3
mov ebp, dword [edi + ecx*4 + 4]
mov edx, dword [edi + ecx*4]
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], ebp
mov ecx, dword [edi + ecx*4 + 8]
mov dword [esp + 0x188], ecx
mov eax, dword [esp + 0x174]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 8], 0xa
call fcn.004a5120
mov dword [esp], 0
lea eax, [0x659175]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.0044e9d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
jmp 0x5d36ad
movzx ecx, byte [esp + 0x27]
test cl, cl
je 0x5d3568
mov edx, edi
lea edi, [esp + 0x58]
call fcn.00462904
mov ecx, dword [esi + 0x78]
mov ebx, dword [esi + 0x7c]
lea ebp, [0x6524c0]
cmp ecx, ebp
jne 0x5d3a6c
lea edi, [esp + 0x58]
mov esi, ebx
call fcn.00462bf8
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x148]
mov ebp, dword [ebx + ecx*4]
mov eax, dword [esp + 0x70]
sub ebp, eax
mov eax, dword [ebx + ecx*4 + 4]
mov esi, edx
mov edx, dword [esp + 0x74]
mov dword [ebx + ecx*4], ebp
sbb eax, edx
mov dword [ebx + ecx*4 + 4], eax
jmp 0x5d3575
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x148]
mov esi, edi
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jae 0x5d35b1
mov ebp, dword [esp + 0x154]
mov edi, dword [ebp + ecx*4]
mov edx, dword [ebp + ecx*4 + 4]
mov dword [esp + 0x178], edi
and edx, 0x7fffffff
mov dword [esp + 0x17c], edx
mov edx, dword [ebp + ecx*4 + 8]
mov dword [esp + 0x18c], edx
jmp 0x5d35b8
mov ebp, dword [esp + 0x154]
mov edx, dword [esp + 0x44]
cmp eax, edx
jae 0x5d35e6
mov edi, dword [esi + ecx*4]
mov edx, dword [esi + ecx*4 + 4]
mov dword [esp + 0x180], edi
and edx, 0x7fffffff
mov dword [esp + 0x184], edx
mov edx, dword [esi + ecx*4 + 8]
mov dword [esp + 0x188], edx
mov eax, dword [ebx + ecx*4]
mov edx, dword [esp + 0x194]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005cf880
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x194]
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x5d3a65
sub edx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
cmp edx, 1
jbe 0x5d3a59
movzx eax, word [ebx + eax]
mov word [esp + 0x170], ax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x148]
mov eax, dword [edx + eax*4]
add eax, 2
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x200
call fcn.005cfcc0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005cf350
movzx eax, byte [esp + 8]
test al, al
jne 0x5d36ad
lea ecx, [0x65ad31]
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], 9
xor eax, eax
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x174]
test edx, edx
jne 0x5d370e
test ecx, ecx
jne 0x5d370e
mov ecx, dword [0x84f188]
mov dword [esp + 0x15c], ecx
mov edx, dword [0x84f18c]
mov dword [esp + 0x48], edx
mov ebx, dword [esi + 0x274]
mov dword [esp + 0x30], ebx
mov ebp, dword [esi + 0x270]
mov dword [esp + 0x14c], ebp
xor eax, eax
mov dword [esp + 0x54], eax
xor eax, eax
jmp 0x5d3916
mov ecx, dword [esp + 0x168]
cmp dword [esp + 0x16c], 9
jne 0x5d378d
mov dword [esp], ecx
lea eax, [0x65ad31]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402990
movzx eax, byte [esp + 0xc]
test al, al
je 0x5d377d
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x3e8
jbe 0x5d375b
mov edx, dword [esp + 0x40]
cmp ecx, edx
jne 0x5d375f
jmp 0x5d38a2
mov edx, dword [esp + 0x40]
inc ecx
xor eax, eax
mov edx, dword [esp + 0x158]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x150]
jmp 0x5d3393
xor eax, eax
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
mov ecx, dword [esp + 0x34]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x38]
cmp ebx, edx
jb 0x5d37a5
mov ebp, dword [esp + 0x150]
jmp 0x5d37f1
lea eax, [0x649280]
mov dword [esp], eax
mov ebp, dword [esp + 0x150]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0044b2b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc ecx
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
mov ebp, eax
mov ebx, edx
xor eax, eax
mov edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
mov edx, dword [0x87bd00]
lea ecx, [ecx + ecx*4]
lea ecx, [ebp + ecx*8]
test edx, edx
jne 0x5d3818
mov edx, edi
mov edi, ecx
lea esi, [esp + 0x168]
call fcn.00462dec
jmp 0x5d3854
mov dword [esp + 0x164], ebp
mov dword [esp + 0x50], ebx
lea eax, [0x649280]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x168]
mov dword [esp + 8], eax
call fcn.00410890
xor eax, eax
mov edx, dword [esp + 0x158]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x164]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
jmp 0x5d3393
mov eax, dword [esp + 0x150]
mov dword [esp + 0x1a4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
add esp, 0x190
ret
lea eax, [0x631620]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x669d9a]
mov dword [eax], ecx
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
lea ecx, [0x6c375c]
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], eax
add esp, 0x190
ret
inc ecx
mov ebp, dword [esp + 0x14c]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x15c]
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
jge 0x5d3983
lea ebp, [ebp + ecx*8]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp]
cmp ebx, edx
jne 0x5d38ff
mov dword [esp], ebp
mov eax, dword [esp + 0x15c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00402990
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5d3966
xor eax, eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
jmp 0x5d38ff
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
cmp ecx, edx
mov eax, 0
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
jl 0x5d370e
mov ecx, dword [esi + 0x274]
lea edx, [ecx + 1]
mov ebx, dword [esi + 0x270]
mov ebp, dword [esi + 0x278]
cmp ebp, edx
jae 0x5d3a03
lea eax, [0x6282a0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.0044b2b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x194]
mov dword [ebx + 0x278], edx
mov edx, dword [0x87bd00]
test edx, edx
jne 0x5d39eb
mov dword [ebx + 0x270], eax
jmp 0x5d39f6
lea edi, [ebx + 0x270]
call fcn.004626c0
mov esi, ebx
mov edi, dword [esp + 0x158]
mov ebx, eax
xor eax, eax
lea edx, [ecx + 1]
mov dword [esi + 0x274], edx
mov edx, dword [0x84f188]
mov dword [esp + 0x160], edx
mov ebp, dword [0x84f18c]
lea edx, [ebx + ecx*8 + 4]
mov dword [edx], ebp
mov edx, dword [0x87bd00]
lea ecx, [ebx + ecx*8]
test edx, edx
jne 0x5d3a40
mov edx, dword [esp + 0x160]
mov dword [ecx], edx
jmp 0x5d370e
mov edx, edi
mov edi, ecx
mov eax, dword [esp + 0x160]
call fcn.004626c0
xor eax, eax
mov edi, edx
jmp 0x5d370e
mov eax, 1
mov ecx, edx
call fcn.00462740
mov ecx, edx
call fcn.004627b0
mov dword [esp], ecx
mov dword [esp + 4], ebp
lea eax, [0x627be0]
mov dword [esp + 8], eax
call fcn.00408df0
nop
call fcn.004612b0
jmp fcn.005d3110