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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x7c]
cmp eax, 5
je 0x59a50e
add eax, 0xfffffffa
cmp eax, edi
mov eax, dword [esi + 0x28]
ja 0x59a10e
mov dword [esp + 0x38], eax
mov eax, edi
shl eax, cl
mov ecx, dword [esi + 4]
sub edx, ecx
mov dword [esp + 0x2c], eax
dec eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
add eax, ecx
mov dword [esp + 0x44], eax
mov eax, edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x78]
shl eax, cl
mov dword [esp + 0x4c], eax
mov eax, edx
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], edx
cmp eax, ecx
jbe 0x599d15
mov eax, edx
sub eax, ecx
mov ecx, dword [esi + 0x10]
jmp 0x599d1a
mov ecx, dword [esi + 0x10]
mov eax, ecx
cmp dword [esi + 0x14], 0
cmovne eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
cmp edx, ecx
jbe 0x599d37
mov eax, edx
sub eax, ecx
mov dword [esp + 0x34], eax
jmp 0x599d3f
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x84]
push 0xcf1bbcdc
push 0xbf9b0000
push dword [ebx + 4]
mov esi, dword [eax + 0x80]
push dword [ebx]
shl edi, cl
sub esi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 3
mov dword [esp + 0x28], eax
call fcn.005e0850
mov ecx, 0x40
sub ecx, esi
call fcn.005e2c50
mov esi, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [esp + 0x30]
sub edx, ecx
dec dword [esp + 0x2c]
shl eax, 2
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
cmp eax, edx
jae 0x599e18
mov ebx, dword [esp + 0x4c]
mov eax, 0x40
sub eax, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x48], eax
lea esi, [ebx + ecx]
push 0xcf1bbcdc
push 0xbf9b0000
push dword [esi + 4]
push dword [esi]
call fcn.005e0850
mov ecx, dword [esp + 0x48]
call fcn.005e2c50
mov ecx, dword [esp + 0x20]
lea esi, [esi + 1]
lea edx, [ecx + eax*4]
mov ecx, ebx
and ecx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [edi + ecx*4], eax
mov dword [edx], ebx
inc ebx
mov edx, dword [esp + 0x50]
cmp ebx, edx
jb 0x599dd1
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xcf1bbcdc
push 0xbf9b0000
mov dword [esi + 0x18], edx
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0850
mov ecx, 0x40
sub ecx, dword [esp + 0x24]
call fcn.005e2c50
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx + eax*4]
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edi
sbb eax, eax
neg eax
test eax, ecx
je 0x599ee6
mov esi, 3
jmp 0x599e70
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x30]
mov al, byte [ecx + esi]
cmp al, byte [esi + ebx]
jne 0x599eb1
push edx
mov edx, ecx
mov ecx, ebx
call fcn.00577530
add esp, 4
cmp eax, esi
jbe 0x599eae
mov ecx, dword [esp + 0x28]
mov esi, eax
mov edx, dword [ebp + 0x14]
add eax, ebx
sub ecx, dword [esp + 0x14]
add ecx, 2
mov dword [edx], ecx
mov edx, dword [ebp + 0x10]
cmp eax, edx
je 0x599ee2
jmp 0x599eb1
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x14], eax
jbe 0x599ee2
mov eax, dword [esp + 0x54]
dec edi
and eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + eax*4]
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edi
sbb eax, eax
neg eax
test eax, ecx
jne 0x599e70
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + 4]
mov eax, dword [eax]
sub ecx, eax
mov dword [esp + 0x14], eax
add ecx, esi
mov eax, 3
mov dword [esp + 0x1c], ecx
cmp edi, eax
mov dword [esp + 0x2c], esi
cmovb eax, edi
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], ecx
test eax, eax
je 0x599ff9
mov eax, dword [esp + 0x40]
lea ecx, [eax*4]
mov dword [esp + 0x20], ecx
mov edi, edi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x50], eax
test eax, eax
je 0x59a941
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x599fd9
add esi, 4
lea eax, [ebx + 4]
sub eax, esi
mov ecx, edx
add eax, dword [esp + 0x14]
cmp eax, edx
mov edx, esi
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov edx, eax
add esp, 4
mov dword [esp + 0x54], edx
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x14]
jne 0x599f9e
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 4]
mov edx, dword [esp + 0x44]
lea ecx, [ecx + ebx]
push eax
call fcn.00577530
mov edx, dword [esp + 0x58]
add esp, 4
add edx, eax
lea ecx, [edx + 4]
cmp ecx, dword [esp + 0x10]
jbe 0x599fd2
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x50]
mov edx, dword [ebp + 0x14]
add eax, 2
mov dword [esp + 0x10], ecx
mov dword [edx], eax
lea eax, [ecx + ebx]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x599fd5
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add ecx, 4
mov esi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [esp + 0x4c]
jb 0x599f30
mov ecx, eax
mov eax, dword [esp + 0x18]
sub edi, ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x20]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
shr dword [esp + 0x24], 8
movzx eax, al
cmp edi, eax
cmova edi, eax
test edi, edi
je 0x59a941
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
mov dword [esp + 0x24], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x28]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x50], eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x59a0e5
add esi, 4
lea eax, [ebx + 4]
sub eax, esi
mov ecx, edx
add eax, dword [esp + 0x14]
cmp eax, edx
mov edx, esi
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov edx, eax
add esp, 4
mov dword [esp + 0x54], edx
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x14]
jne 0x59a0a6
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 4]
mov edx, dword [esp + 0x44]
lea ecx, [ecx + ebx]
push eax
call fcn.00577530
mov edx, dword [esp + 0x58]
add esp, 4
add edx, eax
add edx, 4
cmp edx, dword [esp + 0x10]
jbe 0x59a0de
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x50]
mov ecx, dword [ebp + 0x14]
add eax, 2
mov dword [esp + 0x10], edx
mov dword [ecx], eax
lea eax, [edx + ebx]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x59a0e1
mov ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
add ecx, 4
mov esi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
cmp eax, edi
jb 0x59a040
mov ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x34], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x44], eax
dec eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
sub edx, eax
mov dword [esp + 0x58], ecx
add ecx, eax
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x78]
shl eax, cl
mov dword [esp + 0x54], eax
mov eax, edx
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], edx
cmp eax, ecx
jbe 0x59a15d
mov eax, edx
sub eax, ecx
mov ecx, dword [esi + 0x10]
jmp 0x59a162
mov ecx, dword [esi + 0x10]
mov eax, ecx
cmp dword [esi + 0x14], 0
cmovne eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
cmp edx, ecx
jbe 0x59a17f
mov eax, edx
sub eax, ecx
mov dword [esp + 0x38], eax
jmp 0x59a187
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x84]
imul edx, dword [ebx], 0x9e3779b1
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x80]
shl edi, cl
sub eax, 2
mov ecx, 0x20
mov dword [esp + 0x14], edi
sub ecx, eax
mov dword [esp + 0x10], 3
shr edx, cl
mov ecx, ebx
sub ecx, dword [esp + 0x1c]
lea eax, [edx*4]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x44], ecx
cmp eax, ecx
jae 0x59a246
mov esi, dword [esp + 0x1c]
mov ecx, 0x20
sub ecx, dword [esp + 0x3c]
mov ebx, eax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
jmp 0x59a210
imul eax, dword [ebx + esi], 0x9e3779b1
shr eax, cl
mov ecx, ebx
and ecx, dword [esp + 0x50]
lea edx, [edx + eax*4]
mov eax, dword [edx]
mov dword [edi + ecx*4], eax
mov ecx, dword [esp + 0x2c]
mov dword [edx], ebx
inc ebx
mov edx, dword [esp + 0x40]
cmp ebx, dword [esp + 0x44]
jb 0x59a210
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x18], ecx
mov ecx, 0x20
imul eax, dword [ebx], 0x9e3779b1
sub ecx, dword [esp + 0x3c]
shr eax, cl
mov esi, dword [edx + eax*4]
cmp esi, dword [esp + 0x30]
mov edx, dword [ebp + 0x10]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edi
sbb eax, eax
neg eax
test eax, ecx
je 0x59a2e2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add eax, esi
mov al, byte [eax + ecx]
cmp al, byte [ecx + ebx]
jne 0x59a2bd
push edx
mov edx, dword [esp + 0x20]
mov ecx, ebx
lea edx, [esi + edx]
call fcn.00577530
add esp, 4
cmp eax, dword [esp + 0x10]
jbe 0x59a2ba
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
sub ecx, esi
add ecx, 2
mov dword [esp + 0x10], eax
add eax, ebx
mov dword [edx], ecx
mov edx, dword [ebp + 0x10]
cmp eax, edx
je 0x59a2e2
jmp 0x59a2bd
mov edx, dword [ebp + 0x10]
cmp esi, dword [esp + 0x38]
jbe 0x59a2e2
and esi, dword [esp + 0x28]
dec edi
mov eax, dword [esp + 0x34]
mov esi, dword [eax + esi*4]
cmp esi, dword [esp + 0x30]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edi
sbb eax, eax
neg eax
test eax, ecx
jne 0x59a273
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
mov ecx, esi
mov eax, dword [eax]
sub ecx, eax
add ecx, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, 3
cmp edi, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], esi
cmovb eax, edi
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ecx
test eax, eax
je 0x59a3f9
mov eax, dword [esp + 0x48]
lea ecx, [eax*4]
mov dword [esp + 0x2c], ecx
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x54], eax
test eax, eax
je 0x59a941
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x59a3d9
add esi, 4
lea eax, [ebx + 4]
sub eax, esi
mov ecx, edx
add eax, dword [esp + 0x1c]
cmp eax, edx
mov edx, esi
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov edx, eax
add esp, 4
mov dword [esp + 0x58], edx
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x1c]
jne 0x59a39e
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 4]
mov edx, dword [esp + 0x4c]
lea ecx, [ecx + ebx]
push eax
call fcn.00577530
mov edx, dword [esp + 0x5c]
add esp, 4
add edx, eax
lea ecx, [edx + 4]
cmp ecx, dword [esp + 0x10]
jbe 0x59a3d2
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
mov edx, dword [ebp + 0x14]
add eax, 2
mov dword [esp + 0x10], ecx
mov dword [edx], eax
lea eax, [ecx + ebx]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x59a3d5
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ecx, 4
mov esi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x50]
jb 0x59a330
mov ecx, eax
mov eax, dword [esp + 0x18]
sub edi, ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x20]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
shr dword [esp + 0x2c], 8
movzx eax, al
cmp edi, eax
cmova edi, eax
test edi, edi
je 0x59a941
mov eax, dword [esp + 0x2c]
lea ecx, [eax*4]
mov dword [esp + 0x2c], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x28]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x54], eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x59a4e5
add esi, 4
lea eax, [ebx + 4]
sub eax, esi
mov ecx, edx
add eax, dword [esp + 0x1c]
cmp eax, edx
mov edx, esi
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov edx, eax
add esp, 4
mov dword [esp + 0x58], edx
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x1c]
jne 0x59a4a6
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 4]
mov edx, dword [esp + 0x4c]
lea ecx, [ecx + ebx]
push eax
call fcn.00577530
mov edx, dword [esp + 0x5c]
add esp, 4
add edx, eax
add edx, 4
cmp edx, dword [esp + 0x10]
jbe 0x59a4de
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x14]
add eax, 2
mov dword [esp + 0x10], edx
mov dword [ecx], eax
lea eax, [edx + ebx]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x59a4e1
mov ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
add ecx, 4
mov esi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], ecx
cmp eax, edi
jb 0x59a440
mov ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
mov dword [esp + 0x3c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
dec eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
sub edx, eax
mov dword [esp + 0x5c], ecx
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x78]
shl eax, cl
mov dword [esp + 0x58], eax
mov eax, edx
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], edx
cmp eax, ecx
jbe 0x59a560
mov eax, edx
sub eax, ecx
mov ecx, dword [esi + 0x10]
jmp 0x59a565
mov ecx, dword [esi + 0x10]
mov eax, ecx
cmp dword [esi + 0x14], 0
cmovne eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
cmp edx, ecx
jbe 0x59a582
mov eax, edx
sub eax, ecx
mov dword [esp + 0x40], eax
jmp 0x59a58a
mov dword [esp + 0x40], 0
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x84]
push 0xcf1bbcdc
push 0xbb000000
push dword [ebx + 4]
mov esi, dword [eax + 0x80]
push dword [ebx]
shl edi, cl
sub esi, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 3
mov dword [esp + 0x2c], eax
call fcn.005e0850
mov ecx, 0x40
sub ecx, esi
call fcn.005e2c50
mov esi, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
shl eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x58], eax
cmp eax, edx
jae 0x59a668
mov ebx, dword [esp + 0x58]
mov eax, 0x40
sub eax, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
lea esi, [ebx + ecx]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + 4]
push dword [esi]
call fcn.005e0850
mov ecx, dword [esp + 0x54]
call fcn.005e2c50
mov ecx, dword [esp + 0x44]
lea esi, [esi + 1]
lea edx, [ecx + eax*4]
mov ecx, ebx
and ecx, dword [esp + 0x50]
mov eax, dword [edx]
mov dword [edi + ecx*4], eax
mov dword [edx], ebx
inc ebx
mov edx, dword [esp + 0x4c]
cmp ebx, edx
jb 0x59a621
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0xcf1bbcdc
mov dword [esi + 0x18], edx
mov esi, 0x40
sub esi, dword [esp + 0x4c]
push 0xbb000000
push dword [ebx + 4]
push dword [ebx]
call fcn.005e0850
mov ecx, esi
call fcn.005e2c50
mov ecx, dword [esp + 0x44]
mov edx, dword [ebp + 0x10]
mov esi, dword [ecx + eax*4]
cmp esi, dword [esp + 0x38]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edi
sbb eax, eax
neg eax
test eax, ecx
je 0x59a71f
lea esp, [esp]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
add eax, esi
mov al, byte [eax + ecx]
cmp al, byte [ecx + ebx]
jne 0x59a6fa
push edx
mov edx, dword [esp + 0x30]
mov ecx, ebx
lea edx, [esi + edx]
call fcn.00577530
add esp, 4
cmp eax, dword [esp + 0x10]
jbe 0x59a6f7
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
sub ecx, esi
add ecx, 2
mov dword [esp + 0x10], eax
add eax, ebx
mov dword [edx], ecx
mov edx, dword [ebp + 0x10]
cmp eax, edx
je 0x59a71f
jmp 0x59a6fa
mov edx, dword [ebp + 0x10]
cmp esi, dword [esp + 0x40]
jbe 0x59a71f
and esi, dword [esp + 0x28]
dec edi
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + esi*4]
cmp esi, dword [esp + 0x38]
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, edi
sbb eax, eax
neg eax
test eax, ecx
jne 0x59a6b0
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 4]
mov ecx, esi
mov eax, dword [eax]
sub ecx, eax
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, 3
cmp edi, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], esi
cmovb eax, edi
xor ecx, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], ecx
test eax, eax
je 0x59a839
mov eax, dword [esp + 0x34]
lea ecx, [eax*4]
mov dword [esp + 0x2c], ecx
jmp 0x59a770
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x20]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x58], eax
test eax, eax
je 0x59a941
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x59a819
add esi, 4
lea eax, [ebx + 4]
sub eax, esi
mov ecx, edx
add eax, dword [esp + 0x18]
cmp eax, edx
mov edx, esi
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov edx, eax
add esp, 4
mov dword [esp + 0x5c], edx
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x18]
jne 0x59a7de
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 4]
mov edx, dword [esp + 0x30]
lea ecx, [ecx + ebx]
push eax
call fcn.00577530
mov edx, dword [esp + 0x60]
add esp, 4
add edx, eax
lea ecx, [edx + 4]
cmp ecx, dword [esp + 0x10]
jbe 0x59a812
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x58]
mov edx, dword [ebp + 0x14]
add eax, 2
mov dword [esp + 0x10], ecx
mov dword [edx], eax
lea eax, [ecx + ebx]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x59a815
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ecx, 4
mov esi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x54]
jb 0x59a770
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub edi, ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], 0
mov eax, dword [eax + 0x20]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
shr dword [esp + 0x2c], 8
movzx eax, al
cmp edi, eax
cmova edi, eax
test edi, edi
je 0x59a941
mov eax, dword [esp + 0x2c]
lea ecx, [eax*4]
mov dword [esp + 0x2c], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x28]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x58], eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jne 0x59a925
add esi, 4
lea eax, [ebx + 4]
sub eax, esi
mov ecx, edx
add eax, dword [esp + 0x18]
cmp eax, edx
mov edx, esi
cmovb ecx, eax
push ecx
lea ecx, [ebx + 4]
call fcn.00577530
mov edx, eax
add esp, 4
mov dword [esp + 0x5c], edx
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x18]
jne 0x59a8e6
mov eax, dword [ebp + 0x10]
lea ecx, [edx + 4]
mov edx, dword [esp + 0x30]
lea ecx, [ecx + ebx]
push eax
call fcn.00577530
mov edx, dword [esp + 0x60]
add esp, 4
add edx, eax
add edx, 4
cmp edx, dword [esp + 0x10]
jbe 0x59a91e
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x58]
mov ecx, dword [ebp + 0x14]
add eax, 2
mov dword [esp + 0x10], edx
mov dword [ecx], eax
lea eax, [edx + ebx]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x59a921
mov ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
add ecx, 4
mov esi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], ecx
cmp eax, edi
jb 0x59a880
mov ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret