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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov eax, dword [esp + 0xf4]
mov edx, dword [esp + 0xfc]
lea edi, [esp + 0xc0]
mov ecx, dword [esp + 0x120]
mov ebx, dword [esp + 0x124]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x108]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x114]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x11c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x12c]
mov ebp, edx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x13c]
lea ebx, [esp + 0x90]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x164]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x180]
mov dword [esp + 0x58], eax
mov eax, dword [0xd3f044]
mov dword [esp + 0xcc], eax
xor eax, eax
jmp 0x5868ee
cmp byte [ebp + 0x6af90], 0
jne 0x5869d0
lea eax, [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x98]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa8]
mov dword [esp + 8], eax
lea eax, [esp + 0xa0]
mov dword [esp + 4], eax
lea eax, [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 0x48], edi
call fcn.00504bb0
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x586ab0
mov ebp, dword [esp + 0x90]
add eax, dword [ebp + 0x6af7c]
mov dword [ebp + 0x6af7c], eax
cmp eax, 0x105
ja 0x5869d0
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00504c00
cmp dword [ebp + 0x6af74], 0xfef9
jbe 0x586808
cmp byte [ebp + 0x6af91], 0
je 0x586808
mov dword [esp], ebx
lea esi, [esp + 0xb8]
lea ebp, [esp + 0xc4]
call fcn.00504cc0
mov dword [esp], ebx
call fcn.00504d00
mov dword [esp], ebx
call fcn.00504d40
mov dword [esp], esi
call fcn.00504dd0
lea eax, [esp + 0xbc]
cmp dword [esp + 0xb8], 0x7fff
mov dword [esp + 0x54], eax
jbe 0x58699d
jmp 0x5869f0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00504e90
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00504f00
mov dword [esp], esi
call fcn.00504f40
cmp dword [esp + 0xb8], 0x7fff
ja 0x5869f0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00504e50
cmp dword [esp + 0xbc], 0x7fff
ja 0x586968
mov dword [esp], ebp
call fcn.00504ed0
jmp 0x586978
mov dword [esp], ebx
call fcn.00504ff0
mov eax, dword [esp + 0xcc]
sub eax, dword [0xd3f044]
jne 0x586ac3
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.00504f70
cmp dword [esp + 0xb8], 0x7fff
ja 0x586a96
mov ebp, dword [esp + 0x90]
mov eax, dword [ebp]
mov eax, dword [eax]
test eax, 0x40000000
jne 0x5869c8
lea eax, [esp + 0xbc]
mov dword [esp + 0x54], eax
jmp 0x586a5c
mov dword [esp], eax
call fcn.00505130
lea eax, [esp + 0xc8]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00505160
cmp dword [esp + 0xb8], 0x7fff
ja 0x586aa0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00505070
lea eax, [esp + 0xc8]
cmp dword [esp + 0xbc], 0x7fff
jbe 0x586a30
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.005050b0
jmp 0x586a38
mov ebp, dword [esp + 0x90]
lea esi, [esi]
mov dword [esp], edi
call fcn.005051b0
jmp 0x586808
mov eax, dword [esp + 0x90]
mov byte [eax + 0x6af90], 1
jmp 0x5869d0
call fcn.00401690
nop
nop
nop
nop
nop
nop
nop
nop