Function at 0x5b5170
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 0x5b5ad6
sub esp, 0x190
mov eax, dword [esp + 0x198]
test eax, eax
je 0x5b51ff
mov eax, dword [eax + 8]
cmp eax, 0x9eaa9ae
jne 0x5b51c9
mov eax, dword [esp + 0x198]
lea ecx, [0x5f1800]
cmp eax, ecx
jne 0x5b51f7
mov eax, dword [esp + 0x19c]
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
xor ebx, ebx
jmp 0x5b5205
cmp eax, 0x4b6059d3
jne 0x5b51f7
mov eax, dword [esp + 0x198]
lea ecx, [0x5f1580]
cmp eax, ecx
jne 0x5b51f7
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 0x5b5205
xor ebx, ebx
xor ecx, ecx
xor eax, eax
jmp 0x5b5205
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.005b3bb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x5b53bd
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x154], 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.005b3bb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x5b5387
test ebp, ebp
jne 0x5b52eb
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x5b52f7
mov eax, dword [0x7f81c0]
mov ecx, dword [0x7f81c4]
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 0x5b5302
mov ecx, edx
mov eax, ecx
mov edx, dword [esp + 0x154]
jmp 0x5b530c
test ebp, ebp
je 0x5b5351
mov eax, edx
mov edx, ebx
mov ecx, ebp
mov dword [esp + 0x148], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x158], ebx
mov esi, dword [esp + 0x194]
xor edi, edi
xor edi, edi
mov dword [esp + 0x2c], edi
xor edi, edi
mov dword [esp + 0x38], edi
lea edi, [0x81da90]
mov dword [esp + 0x150], edi
xor edi, edi
mov dword [esp + 0x34], edi
xor edi, edi
jmp 0x5b5430
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
lea edi, [edx + 1]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x148]
mov edx, esi
mov esi, dword [esp + 0x194]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x150], ebp
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x158]
mov ebp, dword [esp + 0x44]
cmp ecx, edi
jbe 0x5b58b3
mov dword [esp + 0x40], edi
lea edi, [esp + 0x168]
xor eax, eax
call fcn.00462796
mov ecx, dword [esp + 0x40]
mov edi, ebx
lea ebx, [ecx + ecx*2]
mov dword [esp + 0x54], ebx
mov ebp, dword [edx + ebx*4]
test ebp, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
mov edx, dword [edx + ebx*4 + 4]
test edx, edx
seta bl
sete cl
and ecx, ebp
or ebx, ecx
test bl, bl
je 0x5b5720
and edx, 0x80000000
test edx, edx
jbe 0x5b556e
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 0x5b54ed
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 0x5b5515
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.004a2b70
mov dword [esp], 0
lea eax, [0x68b344]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.0044da90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
jmp 0x5b5710
movzx ecx, byte [esp + 0x27]
test cl, cl
je 0x5b55cc
mov edx, edi
lea edi, [esp + 0x58]
call fcn.00462764
mov ecx, dword [esi + 0x78]
mov ebx, dword [esi + 0x7c]
lea ebp, [0x62aa00]
cmp ecx, ebp
jne 0x5b5abf
lea edi, [esp + 0x58]
mov esi, ebx
call fcn.00462a58
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x148]
mov ebp, dword [ebx + ecx*4]
mov eax, dword [ebx + ecx*4 + 4]
mov esi, edx
mov edx, dword [esp + 0x70]
mov edi, ecx
mov ecx, dword [esp + 0x74]
sub ebp, edx
sbb eax, ecx
mov dword [ebx + edi*4], ebp
mov dword [ebx + edi*4 + 4], eax
jmp 0x5b55d9
mov ebx, dword [esp + 0x148]
mov esi, edi
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jae 0x5b5614
mov edx, dword [esp + 0x154]
mov ebp, dword [edx + edi*4]
mov ecx, dword [edx + edi*4 + 4]
mov dword [esp + 0x178], ebp
and ecx, 0x7fffffff
mov dword [esp + 0x17c], ecx
mov ecx, dword [edx + edi*4 + 8]
mov dword [esp + 0x18c], ecx
jmp 0x5b561b
mov edx, dword [esp + 0x154]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jae 0x5b5649
mov ebp, dword [esi + edi*4]
mov ecx, dword [esi + edi*4 + 4]
mov dword [esp + 0x180], ebp
and ecx, 0x7fffffff
mov dword [esp + 0x184], ecx
mov ecx, dword [esi + edi*4 + 8]
mov dword [esp + 0x188], ecx
mov eax, dword [ebx + edi*4]
mov ecx, dword [esp + 0x194]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005b1960
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 0x5b5ab8
sub edx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
cmp edx, 1
jbe 0x5b5aac
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.005b1d90
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.005b1440
movzx eax, byte [esp + 8]
test al, al
jne 0x5b5710
lea ecx, [0x634c24]
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 0x5b5771
test ecx, ecx
jne 0x5b5771
mov ecx, dword [0x7f3058]
mov dword [esp + 0x15c], ecx
mov edx, dword [0x7f305c]
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 0x5b5968
mov ecx, dword [esp + 0x168]
cmp dword [esp + 0x16c], 9
jne 0x5b57e7
mov dword [esp], ecx
lea eax, [0x634c24]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call fcn.00402a70
movzx eax, byte [esp + 0xc]
test al, al
je 0x5b57d7
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x3e8
jbe 0x5b57be
mov edx, dword [esp + 0x40]
cmp ecx, edx
jne 0x5b57c2
jmp 0x5b58f4
mov edx, dword [esp + 0x40]
inc ecx
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x150]
jmp 0x5b53f3
xor eax, eax
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
mov ecx, dword [esp + 0x34]
inc ecx
mov edx, dword [esp + 0x38]
cmp edx, ecx
jb 0x5b57fd
mov ebx, dword [esp + 0x150]
jmp 0x5b5844
mov eax, dword [esp + 0x150]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x61e3e0]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x34], ecx
lea ebp, [ecx + ecx*4]
lea ebp, [ebx + ebp*8 - 0x28]
mov ecx, dword [0x81dcc0]
test ecx, ecx
jne 0x5b5869
mov edi, ebp
lea esi, [esp + 0x168]
call fcn.00462c4c
jmp 0x5b589e
mov dword [esp + 0x164], ebx
mov dword [esp + 0x50], edx
lea eax, [0x61e3e0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [esp + 0x168]
mov dword [esp + 8], eax
call fcn.004106f0
xor eax, eax
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x164]
mov ecx, dword [esp + 0x2c]
mov eax, edx
mov ebp, ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
jmp 0x5b53f3
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, [0x6072c0]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x6450e7]
mov dword [eax], ecx
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
lea ecx, [0x68bbe4]
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 0x5b59d5
lea ebp, [ebp + ecx*8]
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp]
cmp ebx, edx
jne 0x5b5951
mov dword [esp], ebp
mov eax, dword [esp + 0x15c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00402a70
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5b59b8
xor eax, eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x194]
mov edi, dword [esp + 0x158]
jmp 0x5b5951
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 0x5b5771
mov ecx, dword [esi + 0x274]
inc ecx
mov edx, dword [esi + 0x270]
mov ebx, dword [esi + 0x278]
cmp ebx, ecx
jae 0x5b5a57
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5ff840]
mov dword [esp + 0x10], eax
call fcn.0044a040
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 [0x81dcc0]
test edx, edx
jne 0x5b5a3f
mov dword [ebx + 0x270], eax
jmp 0x5b5a4a
lea edi, [ebx + 0x270]
call fcn.00462500
mov esi, ebx
mov edi, dword [esp + 0x158]
mov edx, eax
xor eax, eax
mov dword [esi + 0x274], ecx
mov ebx, dword [0x7f3058]
mov dword [esp + 0x160], ebx
lea ebp, [edx + ecx*8 - 4]
mov ebx, dword [0x7f305c]
mov dword [ebp], ebx
lea ecx, [edx + ecx*8 - 8]
mov edx, dword [0x81dcc0]
test edx, edx
jne 0x5b5a93
mov edx, dword [esp + 0x160]
mov dword [ecx], edx
jmp 0x5b5771
mov edx, edi
mov edi, ecx
mov eax, dword [esp + 0x160]
call fcn.00462500
xor eax, eax
mov edi, edx
jmp 0x5b5771
mov eax, 1
mov ecx, edx
call fcn.00462580
mov ecx, edx
call fcn.004625f0
mov dword [esp], ecx
mov dword [esp + 4], ebp
lea eax, [0x5ff280]
mov dword [esp + 8], eax
call fcn.00409250
nop
call fcn.004610f0
jmp fcn.005b5170