Function at 0x585090
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 0x585160
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.004d3f50
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.004d3f50
lea ecx, [edi + edi]
lea edx, [ecx + edi]
lea eax, [eax + edx + 4]
cmp eax, 8
ja case.default.0x585155
jmp dword [eax*4 + 0x6927bc]
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.005843b0
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.004d6770
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.004d6770
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 0x5854a9
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.00584520
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.00584520
mov ebx, ebp
sar ebx, 1
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x24], esi
jge 0x5855f0
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 0x58560c
jle 0x585690
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.00585090
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 0x58553c
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.004d6410
mov ebx, eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
test edx, edx
mov dword [esp + 0xc], eax
je 0x5855d0
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.004d65c0
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.004d6410
add ebx, eax
je 0x5853c7
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 0x5853c7
lea esi, [esi]
add edx, 4
inc dword [edx]
je 0x5853c0
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.004d6770
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 0x5851de
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.004d6770
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.004d6770
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 0x585209
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.0058aa30
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.0058aa30
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.005843b0
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 0x585311
test eax, eax
je 0x585331
mov byte [edx], 0
jmp 0x585331
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.004d6770
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 0x58547e
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x38]
mov dword [esp + 0x4c], 0
jmp 0x5851f6
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.004d6410
add ebx, eax
jmp 0x585381
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 0x5852aa
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.00584520
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 0x58553c
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 0x585331
cmp edi, 4
jae 0x585720
test edi, edi
je 0x5856a0
mov byte [esi], 0
cmp dword [esp + 0x28], 0xf
jg 0x5856b2
cmp dword [esp + 0x24], 0xf
jle 0x585795
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
jmp 0x5856d4
cmp ecx, eax
jg 0x5856e3
cmp eax, edx
je 0x585748
cmp eax, ecx
je 0x585787
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
mov ebx, eax
cmp edx, eax
jle 0x5856c0
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.00585090
jmp 0x585331
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 0x5856a0
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.00584520
jmp 0x585331
mov edx, dword [esp + 0x28]
sub edx, eax
mov dword [esp + 0x28], eax
xor eax, eax
jmp 0x585752
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.005843b0
jmp 0x585331