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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov esi, dword [esp + 0x7c]
mov ebp, dword [esi + 0xbb4]
push esi
push ebx
mov byte [esp + 0x17], 0
call fcn.00506f80
add esp, 8
test eax, eax
je 0x507890
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret
push edi
xor edi, edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], edi
call fcn.00438f50
push ebx
lea ecx, [esp + 0x2c]
call fcn.0043a810
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00504750
mov eax, dword [ebp]
add esp, 4
lea ecx, [esp + 0x60]
push ecx
push esi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x28], eax
call fcn.00504230
add esp, 0xc
push eax
mov eax, dword [esp + 0x20]
mov ecx, ebp
call dword [eax + 0x24]
mov esi, eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], esi
call fcn.00438ca0
cmp esi, edi
jne 0x507941
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043f0a0
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0043f0a0
add esp, 8
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00438ca0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret
push ebx
lea ecx, [esp + 0x20]
call fcn.00439fc0
push 0x5dbd10
lea ecx, [esp + 0x20]
call fcn.0043a0e0
lea ecx, [esp + 0x64]
call fcn.00438ee0
push eax
lea ecx, [esp + 0x20]
call fcn.0043a0e0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00504750
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, 1
jne 0x5079b7
mov eax, dword [esp + 0x7c]
test al, al
je 0x5079a0
mov edx, dword [esp + 0x80]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00507860
add esp, 0xc
push 0x10
call fcn.0043f080
mov esi, eax
add esp, 4
cmp esi, edi
je 0x5079ec
lea ecx, [esp + 0x1c]
push ecx
jmp 0x5079d6
cmp eax, 2
je 0x5079ec
cmp eax, 3
je 0x5079ec
push 0x10
call fcn.0043f080
mov esi, eax
add esp, 4
cmp esi, edi
je 0x5079ec
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov ecx, esi
mov dword [esi], edi
call fcn.0043a830
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x18]
mov eax, dword [ebp]
lea ecx, [esp + 0x60]
push ecx
push esi
mov ecx, ebp
call dword [eax + 0x28]
test al, al
je 0x507aba
push ebx
lea ecx, [esp + 0x20]
call fcn.00439fc0
push 0x5dbd10
lea ecx, [esp + 0x20]
call fcn.0043a0e0
lea ecx, [esp + 0x64]
call fcn.00438ee0
push eax
lea ecx, [esp + 0x20]
call fcn.0043a0e0
lea edx, [esp + 0x1c]
push edx
call fcn.00504750
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, 1
jne 0x507a67
mov eax, dword [esp + 0x7c]
test al, al
je 0x507aa0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x1c]
push ecx
push eax
push edx
call fcn.00507860
add esp, 0xc
jmp 0x507aa0
cmp eax, 2
je 0x507aa0
cmp eax, 3
je 0x507aa0
push 0x10
call fcn.0043f080
mov esi, eax
add esp, 4
cmp esi, edi
je 0x507aa0
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.0043a830
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x18]
mov edx, dword [ebp]
lea eax, [esp + 0x60]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x28]
test al, al
jne 0x507a06
mov edx, dword [ebp]
push esi
mov ecx, ebp
call dword [edx + 0x2c]
mov esi, dword [esp + 0x14]
mov eax, esi
cmp eax, edi
je 0x507b64
mov ebx, dword [esi]
lea ecx, [esp + 0x40]
mov edi, esi
call fcn.00438f50
mov ecx, dword [esp + 0x80]
call fcn.004a7100
cmp eax, 6
lea ecx, [esp + 0x40]
push ebx
jl 0x507afb
call fcn.00438e40
jmp 0x507b00
call fcn.00438df0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call fcn.00438d50
lea ecx, [esp + 0x40]
call fcn.00438ca0
mov edx, dword [ebp]
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call dword [edx + 0x18]
lea ecx, [esp + 0x50]
mov bl, al
call fcn.00438ca0
test bl, bl
je 0x507b38
mov byte [esp + 0x13], 1
mov ecx, dword [edi]
mov esi, dword [esi + 0xc]
push ecx
call fcn.0043f0a0
xor ebx, ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.0043f0a0
add esp, 8
cmp esi, ebx
jne 0x507ad1
mov ebx, dword [esp + 0x78]
xor edi, edi
push ebx
lea ecx, [esp + 0x38]
call fcn.0043a810
lea edx, [esp + 0x34]
push edx
call fcn.00504750
mov eax, dword [esp + 0x84]
mov esi, dword [ebp]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00504230
add esp, 0x10
push eax
mov ecx, ebp
call dword [esi + 0x40]
lea ecx, [esp + 0x50]
mov bl, al
call fcn.00438ca0
test bl, bl
je 0x507baf
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x34]
push eax
call fcn.0043f0a0
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.0043f0a0
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0043f0a0
add esp, 0xc
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00438ca0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret