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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x58790f
cmp dword [ecx + 0x74], esi
jne 0x587904
mov eax, dword [ecx]
test byte [eax + 0x50], 8
jne 0x587904
mov byte [ecx + 0x17], 1
push ecx
call fcn.005617d0
add esp, 4
mov esi, eax
test edi, edi
je 0x587c17
lea eax, [edi + 0x58]
push ebx
mov dword [esp + 0xc], eax
push ebp
cmp dword [eax], 0
jne 0x587a59
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x1000
je 0x587a59
cmp byte [edi + 0x11], 0x5a
je 0x587a59
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
cmp dword [esi + 0x78], ecx
jg 0x587960
push 0
push edx
push 0
push 0x4a
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58798f
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x5879ac
push 0
push 0
push edx
push 0x22
push esi
call fcn.00515850
add esp, 0x14
jmp 0x5879db
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x22
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x5879fa
push edx
push 0
push ebx
push 0x5d
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587a25
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [edx - 2]
test ecx, ecx
jns 0x587a32
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x587a47
mov eax, 0x973ecc
mov dword [eax + 8], edx
jmp 0x587c06
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x587c06
cmp dword [edi + 0x40], 0
jne 0x587c06
mov eax, dword [edi + 0x48]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x587a71
mov edx, dword [edx]
jmp 0x587a73
xor edx, edx
cmp dword [esp + 0x1c], 0
mov ecx, dword [esi + 0x74]
je 0x587b8e
mov ebx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x587a9d
push 0
push edx
push ebx
push 0xa4
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587ac8
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xa4
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [edi + 0x2c]
cmp byte [eax + 0x57], 0
je 0x587ae1
push edx
push 0xfffffffffffffff8
push eax
call fcn.00502620
add esp, 0xc
jmp 0x587af3
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
mov ebx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x587b12
push 0
push edx
push ebx
push 0x4f
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587b3d
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x587b5d
push 0
push edx
push 0
push 0x4a
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587c06
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x587c06
mov ebx, dword [edi + 0x38]
mov ebp, dword [edi + 0x34]
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x78], ecx
jg 0x587bb0
push ebx
push edx
push ebp
push 0xa3
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587bdb
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xa3
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [edi + 0x2c]
cmp byte [eax + 0x57], 0
je 0x587bf4
push edx
push 0xfffffffffffffff8
push eax
call fcn.00502620
add esp, 0xc
jmp 0x587c06
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov edi, dword [edi + 0x24]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x587920
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret