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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], eax
cmp ebp, 7
jle 0x589590
mov eax, ebp
mov ecx, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x34], eax
lea edi, [ebp*4]
mov ebx, edi
mov dword [esp + 0x38], edi
mov edx, dword [esp + 0x2c]
add edx, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004d8d90
mov edi, eax
mov edx, dword [esp + 0x24]
mov eax, edx
sub eax, ebp
mov ecx, eax
mov dword [esp + 0x3c], eax
mov eax, ebx
add eax, esi
mov ebx, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004d8d90
lea ecx, [edi + edi]
lea edx, [ecx + edi]
lea eax, [eax + edx + 4]
cmp eax, 8
ja case.default.0x589585
jmp dword [eax*4 + 0x696a3c]
mov eax, dword [esp + 0x24]
add eax, ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x28]
add eax, ebp
mov dword [esp + 0x78], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005887e0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call fcn.004db520
mov edx, dword [esp + 0x38]
add edx, ebx
mov eax, ebp
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 0x34], edx
call fcn.004db520
mov dword [esp + 0x4c], 1
mov edx, dword [esp + 0x34]
lea eax, [ebp + ebp]
mov dword [esp + 0x34], eax
mov ebx, eax
cmp ebp, 8
je 0x5898d9
mov eax, dword [esp + 0x30]
lea edi, [eax + ebx*8]
mov ecx, edi
mov edi, ebx
shl edi, 2
lea ebx, [eax + edi]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00588950
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00588950
mov ebx, ebp
sar ebx, 1
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], esi
jge 0x589a20
mov eax, esi
sub eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
lea esi, [eax + edi]
cmp dword [esp + 0x2c], 0
je 0x589a3c
jle 0x589ac0
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x24]
sub eax, ebx
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.005894c0
mov ebx, dword [esp + 0x34]
mov eax, ebx
sub eax, edi
mov ecx, dword [esp + 0x24]
sub eax, ecx
shl eax, 2
mov edx, edi
add edx, ebx
add edx, ecx
mov edi, dword [esp + 0x20]
lea edx, [edi + edx*4]
cmp eax, 4
jb 0x58996c
mov dword [edx], 0
mov dword [edx + eax - 4], 0
lea edi, [edx + 4]
and edi, 0xfffffffc
sub edx, edi
lea ecx, [eax + edx]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004db1c0
mov ebx, eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
test edx, edx
mov dword [esp + 0xc], eax
je 0x589a00
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004db370
sub ebx, eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
add eax, edi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004db1c0
add ebx, eax
je 0x5897f7
mov edx, esi
add edx, ebp
lea edx, [edi + edx*4]
mov eax, dword [edx]
add eax, ebx
mov dword [edx], eax
cmp ebx, eax
jbe 0x5897f7
lea esi, [esi]
add edx, 4
inc dword [edx]
je 0x5897f0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x30]
mov dword [esp], edi
call fcn.004db520
mov edx, dword [esp + 0x38]
add edx, edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
jmp 0x58960e
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x30]
mov dword [esp], edi
call fcn.004db520
mov edx, dword [esp + 0x38]
add edx, edi
mov eax, ebp
mov edi, dword [esp + 0x24]
sub eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 0x34], edx
call fcn.004db520
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x34]
lea eax, [ebp + ebp]
mov dword [esp + 0x34], eax
mov ebx, eax
cmp ebp, 8
jne 0x589639
lea edi, [eax*4]
mov ecx, dword [esp + 0x30]
mov eax, ecx
add eax, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0058ee60
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x20]
mov dword [esp], esi
call fcn.0058ee60
mov dword [esp + 0x20], esi
lea esi, [esi + edi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.005887e0
mov edi, ebx
mov eax, ebx
mov ecx, dword [esp + 0x28]
sub eax, ecx
mov ebx, dword [esp + 0x24]
sub eax, ebx
shl eax, 2
mov edx, ecx
add edx, edi
add edx, ebx
mov edi, dword [esp + 0x20]
lea edx, [edi + edx*4]
cmp eax, 4
jae 0x589741
test eax, eax
je 0x589761
mov byte [edx], 0
jmp 0x589761
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x30]
mov dword [esp], edi
call fcn.004db520
mov edx, dword [esp + 0x38]
add edx, edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
jmp 0x5898ae
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x38]
mov dword [esp + 0x4c], 0
jmp 0x589626
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004db1c0
add ebx, eax
jmp 0x5897b1
mov eax, dword [esp + 0x24]
sub eax, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
lea esi, [eax + edi]
cmp dword [esp + 0x2c], 0
jne 0x5896da
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
sub eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00588950
mov edi, dword [esp + 0x34]
mov eax, edi
sub eax, ebx
sub eax, ebx
shl eax, 2
add ebx, ebx
add ebx, edi
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ebx*4]
cmp eax, 4
jb 0x58996c
mov dword [edx], 0
mov dword [edx + eax - 4], 0
lea edi, [edx + 4]
and edi, 0xfffffffc
sub edx, edi
lea ecx, [eax + edx]
shr ecx, 2
mov eax, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
jmp 0x589761
cmp edi, 4
jae 0x589b50
test edi, edi
je 0x589ad0
mov byte [esi], 0
cmp dword [esp + 0x28], 0xf
jg 0x589ae2
cmp dword [esp + 0x24], 0xf
jle 0x589bc5
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x589b04
cmp ecx, eax
jg 0x589b13
cmp eax, edx
je 0x589b78
cmp eax, ecx
je 0x589bb7
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
mov ebx, eax
cmp edx, eax
jle 0x589af0
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x24]
sub edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x28]
sub edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005894c0
jmp 0x589761
mov dword [esi], 0
mov dword [esi + edi - 4], 0
lea edx, [esi + 4]
and edx, 0xfffffffc
mov ecx, esi
sub ecx, edx
add ecx, edi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
jmp 0x589ad0
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x28]
xor edx, edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00588950
jmp 0x589761
mov edx, dword [esp + 0x28]
sub edx, eax
mov dword [esp + 0x28], eax
xor eax, eax
jmp 0x589b82
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005887e0
jmp 0x589761