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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov edx, 1
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ebx
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x7c]
cmp eax, 5
je 0x59994b
add eax, 0xfffffffa
cmp eax, edx
mov eax, dword [esi + 0x28]
ja 0x59964f
mov dword [esp + 0x30], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
dec eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
sub edi, eax
mov dword [esp + 0x1c], ecx
add ecx, eax
mov dword [esp + 0x28], eax
mov eax, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x78]
shl eax, cl
mov dword [esp + 0x3c], eax
mov eax, edi
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], edi
cmp eax, ecx
jbe 0x599355
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x10]
jmp 0x59935a
mov ecx, dword [esi + 0x10]
mov eax, ecx
cmp dword [esi + 0x14], 0
cmovne eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
cmp edi, eax
jbe 0x599377
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x59937f
mov dword [esp + 0x2c], 0
mov ecx, dword [esi + 0x84]
mov eax, edx
shl eax, cl
mov edx, ebx
mov ecx, dword [esp + 0x28]
mov edi, 3
mov dword [esp + 0xc], eax
sub edx, ecx
mov eax, dword [esi + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], 0x40
cmp eax, edx
jae 0x59943d
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
lea ebx, [edi + ecx]
lea esp, [esp]
push 0xcf1bbcdc
push 0xbf9b0000
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0820
mov ecx, dword [esp + 0x40]
call fcn.005e2c20
mov ecx, dword [esp + 0x24]
lea ebx, [ebx + 1]
mov esi, dword [esp + 0x30]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
mov ecx, edi
and ecx, dword [esp + 0x44]
mov dword [esi + ecx*4], eax
mov dword [edx], edi
inc edi
cmp edi, dword [esp + 0x18]
jb 0x5993f0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0xcf1bbcdc
push 0xbf9b0000
mov dword [esi + 0x18], edx
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0820
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x20]
call fcn.005e2c20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + eax*4]
cmp esi, dword [esp + 0x34]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edx
sbb eax, eax
neg eax
test eax, ecx
je 0x5994eb
nop
mov ecx, dword [esp + 0x28]
add ecx, esi
mov al, byte [ecx + edi]
cmp al, byte [edi + ebx]
jne 0x5994bc
push dword [ebp + 0x10]
mov edx, ecx
mov ecx, ebx
call fcn.00577530
add esp, 4
cmp eax, edi
jbe 0x5994b8
mov ecx, dword [esp + 0x38]
mov edi, eax
mov edx, dword [ebp + 0x14]
sub ecx, esi
add ecx, 2
add eax, ebx
mov dword [edx], ecx
cmp eax, dword [ebp + 0x10]
je 0x5994e7
mov edx, dword [esp + 0xc]
cmp esi, dword [esp + 0x2c]
jbe 0x5994e7
mov eax, dword [esp + 0x48]
dec edx
mov ecx, dword [esp + 0x30]
and eax, esi
mov dword [esp + 0xc], edx
mov esi, dword [ecx + eax*4]
cmp esi, dword [esp + 0x34]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edx
sbb eax, eax
neg eax
test eax, ecx
jne 0x599480
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x4c], edx
lea ecx, [eax - 1]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x34], ecx
sub ecx, edx
sub dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x59952d
sub ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x599535
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x10]
sub edi, dword [esi + 0x80]
push 0xcf1bbcdc
push 0xbf9b0000
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0820
mov ecx, edi
call fcn.005e2c20
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esi + 0x20]
mov esi, dword [esp + 0xc]
mov edi, dword [eax + ecx*4]
cmp edi, edx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, esi
sbb eax, eax
neg eax
test eax, ecx
je 0x599c78
nop
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + edi]
cmp eax, dword [ebx]
jne 0x59960f
lea esi, [ecx + 4]
mov ecx, dword [ebp + 0x10]
add esi, edi
lea eax, [ebx + 4]
sub eax, esi
mov edx, esi
add eax, dword [esp + 0x34]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov ecx, eax
add esp, 4
mov dword [esp + 0x48], ecx
lea eax, [ecx + esi]
mov esi, dword [ebp + 0x10]
cmp eax, dword [esp + 0x34]
jne 0x5995dd
mov edx, dword [esp + 0x50]
lea eax, [ebx + 4]
push esi
add ecx, eax
call fcn.00577530
mov ecx, dword [esp + 0x4c]
add esp, 4
add ecx, eax
add ecx, 4
cmp ecx, dword [esp + 0x14]
jbe 0x599607
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
sub eax, edi
add eax, 2
mov dword [esp + 0x14], ecx
mov dword [edx], eax
lea eax, [ecx + ebx]
cmp eax, esi
je 0x599c78
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
cmp edi, dword [esp + 0x30]
jbe 0x599c78
mov eax, dword [esp + 0x44]
dec esi
mov ecx, dword [esp + 0x40]
and eax, edi
mov dword [esp + 0xc], esi
mov edi, dword [ecx + eax*4]
cmp edi, edx
sbb edx, edx
xor eax, eax
inc edx
cmp eax, esi
sbb ecx, ecx
neg ecx
test ecx, edx
mov edx, dword [esp + 0x18]
jne 0x599580
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
sub edi, eax
mov dword [esp + 0x10], ecx
add ecx, eax
mov dword [esp + 0x1c], eax
mov eax, edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x78]
shl eax, cl
mov dword [esp + 0x50], eax
mov eax, edi
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x20], edi
cmp eax, ecx
jbe 0x59969e
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x10]
jmp 0x5996a3
mov ecx, dword [esi + 0x10]
mov eax, ecx
cmp dword [esi + 0x14], 0
cmovne eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
cmp edi, ecx
jbe 0x5996c0
mov eax, edi
sub eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x5996c8
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x74]
mov edi, 3
mov ecx, dword [esi + 0x84]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
shl edx, cl
dec eax
mov ecx, ebx
mov dword [esp + 0x4c], eax
sub ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ecx
cmp eax, ecx
jae 0x599760
mov ebx, dword [esp + 0x1c]
mov ecx, 0x20
sub ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x48], ecx
imul eax, dword [edi + ebx], 0x9e3779b1
mov esi, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0x30]
lea edx, [ecx + eax*4]
mov ecx, edi
and ecx, dword [esp + 0x4c]
mov eax, dword [edx]
mov dword [esi + ecx*4], eax
mov ecx, dword [esp + 0x48]
mov dword [edx], edi
inc edi
cmp edi, dword [esp + 0x38]
jb 0x599722
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x18], ecx
mov ecx, 0x20
imul eax, dword [ebx], 0x9e3779b1
sub ecx, dword [esp + 0x34]
shr eax, cl
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + eax*4]
cmp esi, dword [esp + 0x24]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edx
sbb eax, eax
neg eax
test eax, ecx
je 0x5997f9
mov edi, edi
mov ecx, dword [esp + 0x1c]
add ecx, esi
mov al, byte [ecx + edi]
cmp al, byte [edi + ebx]
jne 0x5997cc
push dword [ebp + 0x10]
mov edx, ecx
mov ecx, ebx
call fcn.00577530
add esp, 4
cmp eax, edi
jbe 0x5997c8
mov ecx, dword [esp + 0x20]
mov edi, eax
mov edx, dword [ebp + 0x14]
sub ecx, esi
add ecx, 2
add eax, ebx
mov dword [edx], ecx
cmp eax, dword [ebp + 0x10]
je 0x5997f5
mov edx, dword [esp + 0xc]
cmp esi, dword [esp + 0x2c]
jbe 0x5997f5
and esi, dword [esp + 0x44]
dec edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
mov esi, dword [eax + esi*4]
cmp esi, dword [esp + 0x24]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edx
sbb eax, eax
neg eax
test eax, ecx
jne 0x599790
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 4]
mov dword [esp + 0x44], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x50], edx
lea ecx, [eax - 1]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x38], ecx
sub ecx, edx
sub dword [esp + 0x10], ecx
cmp ecx, eax
jbe 0x59983b
sub ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x599843
mov dword [esp + 0x34], 0
imul edx, dword [ebx], 0x9e3779b1
mov ecx, 0x20
sub ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x20]
mov esi, dword [esp + 0xc]
shr edx, cl
mov edi, dword [eax + edx*4]
mov edx, dword [esp + 0x18]
cmp edi, edx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, esi
sbb eax, eax
neg eax
test eax, ecx
je 0x599c78
lea esp, [esp]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + edi]
cmp eax, dword [ebx]
jne 0x59990b
lea esi, [ecx + 4]
mov ecx, dword [ebp + 0x10]
add esi, edi
lea eax, [ebx + 4]
sub eax, esi
mov edx, esi
add eax, dword [esp + 0x38]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
add esp, 4
mov dword [esp + 0x4c], eax
lea ecx, [eax + esi]
mov esi, dword [ebp + 0x10]
cmp ecx, dword [esp + 0x38]
jne 0x5998d9
mov edx, dword [esp + 0x3c]
lea ecx, [eax + 4]
push esi
add ecx, ebx
call fcn.00577530
add esp, 4
add eax, dword [esp + 0x4c]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x14]
jbe 0x599903
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
add eax, 2
mov dword [esp + 0x14], ecx
mov dword [edx], eax
lea eax, [ecx + ebx]
cmp eax, esi
je 0x599c78
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
cmp edi, dword [esp + 0x34]
jbe 0x599c78
mov eax, dword [esp + 0x48]
dec esi
mov ecx, dword [esp + 0x44]
and eax, edi
mov dword [esp + 0xc], esi
mov edi, dword [ecx + eax*4]
cmp edi, edx
sbb edx, edx
xor eax, eax
inc edx
cmp eax, esi
sbb ecx, ecx
neg ecx
test ecx, edx
mov edx, dword [esp + 0x18]
jne 0x599880
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
sub edi, eax
mov dword [esp + 0x1c], ecx
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x78]
shl eax, cl
mov dword [esp + 0x50], eax
mov eax, edi
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], edi
cmp eax, ecx
jbe 0x59999d
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x10]
jmp 0x5999a2
mov ecx, dword [esi + 0x10]
mov eax, ecx
cmp dword [esi + 0x14], 0
cmovne eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x5999bf
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x5999c7
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0x84]
mov eax, edx
shl eax, cl
mov edx, ebx
mov ecx, dword [esp + 0x2c]
mov edi, 3
mov dword [esp + 0xc], eax
sub edx, ecx
mov eax, dword [esi + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], 0x40
cmp eax, edx
jae 0x599a7e
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
lea ebx, [edi + ecx]
push 0xcf1bbcdc
push 0xbb000000
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0820
mov ecx, dword [esp + 0x4c]
call fcn.005e2c20
mov ecx, dword [esp + 0x30]
lea ebx, [ebx + 1]
mov esi, dword [esp + 0x24]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
mov ecx, edi
and ecx, dword [esp + 0x48]
mov dword [esi + ecx*4], eax
mov dword [edx], edi
inc edi
cmp edi, dword [esp + 0x38]
jb 0x599a31
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
push 0xcf1bbcdc
mov dword [esi + 0x18], edx
mov esi, dword [esp + 0x14]
sub esi, dword [esp + 0x38]
push 0xbb000000
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0820
mov ecx, esi
call fcn.005e2c20
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + eax*4]
cmp esi, dword [esp + 0x20]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edx
sbb eax, eax
neg eax
test eax, ecx
je 0x599b2b
mov ecx, dword [esp + 0x2c]
add ecx, esi
mov al, byte [ecx + edi]
cmp al, byte [edi + ebx]
jne 0x599afe
push dword [ebp + 0x10]
mov edx, ecx
mov ecx, ebx
call fcn.00577530
add esp, 4
cmp eax, edi
jbe 0x599afa
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov edx, dword [ebp + 0x14]
sub ecx, esi
add ecx, 2
add eax, ebx
mov dword [edx], ecx
cmp eax, dword [ebp + 0x10]
je 0x599b27
mov edx, dword [esp + 0xc]
cmp esi, dword [esp + 0x28]
jbe 0x599b27
and esi, dword [esp + 0x44]
dec edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], edx
mov esi, dword [eax + esi*4]
cmp esi, dword [esp + 0x20]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edx
sbb eax, eax
neg eax
test eax, ecx
jne 0x599ac2
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 4]
mov dword [esp + 0x44], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x50], edx
lea ecx, [eax - 1]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x38], ecx
sub ecx, edx
sub dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x599b6d
sub ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x599b75
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x10]
sub edi, dword [esi + 0x80]
push 0xcf1bbcdc
push 0xbb000000
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0820
mov ecx, edi
call fcn.005e2c20
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
mov edi, dword [ecx + eax*4]
cmp edi, edx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, esi
sbb eax, eax
neg eax
test eax, ecx
je 0x599c78
lea ecx, [ecx]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + edi]
cmp eax, dword [ebx]
jne 0x599c47
lea esi, [ecx + 4]
mov ecx, dword [ebp + 0x10]
add esi, edi
lea eax, [ebx + 4]
sub eax, esi
mov edx, esi
add eax, dword [esp + 0x38]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
add esp, 4
mov dword [esp + 0x4c], eax
lea ecx, [eax + esi]
mov esi, dword [ebp + 0x10]
cmp ecx, dword [esp + 0x38]
jne 0x599c19
mov edx, dword [esp + 0x54]
lea ecx, [eax + 4]
push esi
add ecx, ebx
call fcn.00577530
add esp, 4
add eax, dword [esp + 0x4c]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x14]
jbe 0x599c3f
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
sub eax, edi
add eax, 2
mov dword [esp + 0x14], ecx
mov dword [edx], eax
lea eax, [ecx + ebx]
cmp eax, esi
je 0x599c78
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
cmp edi, dword [esp + 0x34]
jbe 0x599c78
mov eax, dword [esp + 0x48]
dec esi
mov ecx, dword [esp + 0x44]
and eax, edi
mov dword [esp + 0xc], esi
mov edi, dword [ecx + eax*4]
cmp edi, edx
sbb edx, edx
xor eax, eax
inc edx
cmp eax, esi
sbb ecx, ecx
neg ecx
test ecx, edx
mov edx, dword [esp + 0x18]
jne 0x599bc0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret