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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], 0
mov ecx, dword [eax + 0xf70]
mov dword [esp + 0x20], eax
add eax, 0xeec
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
and ecx, 1
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xeec]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5877ba
mov ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x5875ea
mov ecx, dword [eax]
mov esi, eax
mov ebx, dword [eax + 4]
lea eax, [ebx - 0x80000000]
or eax, ecx
jne 0x58756d
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
sub eax, 0x80000000
or eax, dword [edx + 8]
jne 0x587675
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x34], eax
mov eax, dword [ecx + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0xeec], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0090e330
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
sub eax, 0x80000000
or eax, dword [ecx + 8]
je 0x5877e6
mov edx, ecx
mov ecx, dword [ecx]
mov ebx, dword [edx + 4]
mov esi, edx
jmp 0x587617
mov esi, dword [esi + 0x38]
test esi, esi
je 0x587663
lea eax, [ebx - 0x80000000]
or eax, ecx
jne 0x58766c
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [edx + 0x18]
jne 0x587610
mov ebp, dword [esi + 0xc]
cmp dword [edx + 0xc], ebp
mov edi, dword [esi + 8]
jg 0x587610
jl 0x587642
cmp dword [edx + 8], edi
lea esi, [esi]
jae 0x587610
mov edx, dword [esi + 4]
mov eax, dword [esi]
xor edx, ebp
xor eax, edi
or edx, eax
je 0x587610
mov esi, dword [esi + 0x38]
mov ebx, ebp
mov ecx, dword [esp + 0x18]
test esi, esi
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov ecx, edi
jne 0x587617
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [esp + 0x18]
jmp 0x58754e
mov edi, dword [esp + 0x28]
test edi, edi
je 0x58756d
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x58756d
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5877c8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
call fcn.00586750
test eax, eax
js 0x58779c
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0xeec]
test eax, eax
je 0x5876ca
lea ebx, [eax + 0x38]
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x5876c0
mov dword [esp], 0x40
xor esi, esi
call fcn.0090e430
test eax, eax
mov edx, eax
je 0x587738
mov ecx, dword [esp + 0x1c]
mov esi, edx
mov dword [ebx], eax
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x34], eax
cmp dword [esi + 0x24], 0x582a40
je 0x587525
mov eax, dword [esi + 0x14]
lea edx, [eax + 8]
cmp eax, edx
ja 0x5877f4
mov dword [esp], edx
call fcn.0090e350
test eax, eax
mov ebx, eax
je 0x5877f4
mov eax, dword [esi + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00580260
mov eax, ebx
add eax, dword [esi + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], 0x582a40
jmp 0x587525
test esi, esi
je 0x5875e2
cmp eax, 0xfffffff5
je 0x5875e2
mov dword [esp + 0x24], 1
jmp 0x587525
mov ecx, dword [esp + 0x28]
xor esi, esi
test ecx, ecx
jne 0x587699
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0xeec]
test edx, edx
jne 0x5877fe
mov edx, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00586750
mov eax, ecx
mov ecx, dword [ecx]
mov ebx, dword [eax + 4]
mov esi, eax
jmp 0x58754e
mov eax, 0xfffffff4
jmp 0x5875e2
mov dword [esp + 8], 0x38d
mov dword [esp + 4], 0xb28795
mov dword [esp], 0xb28c55
call sub.msvcrt.dll__assert
lea esi, [esi]