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

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
test edi, edi
mov dword [esp + 0x10], 0
jne 0x7e657d
push 0
lea eax, [esp + 0x18]
push 0x10000
push eax
push ebx
call fcn.007e6880
add esp, 0x10
cmp eax, 0xffffff80
jne 0x7e6562
cmp edx, 0xffffffff
jne 0x7e6562
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
test edx, edx
jg 0x7e6579
jl 0x7e656c
test eax, eax
jae 0x7e6579
pop edi
pop esi
pop ebp
mov eax, 0xffffff7c
pop ebx
add esp, 0x34
ret
lea edi, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0057c67f
mov edx, dword [esp + 0x54]
push edx
call fcn.0057a406
push edi
mov dword [ebx + 0x58], 2
call fcn.0057c3f5
add esp, 0xc
test eax, eax
je 0x7e66f5
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x7e65d8
mov esi, dword [esp + 0x58]
mov ecx, dword [ebp]
mov eax, dword [esi]
push eax
push ecx
push edi
call fcn.007e6a90
add esp, 0xc
test eax, eax
jne 0x7e6697
push esi
push ebp
push edi
call fcn.007e6a10
add esp, 0xc
cmp dword [ebx + 0x58], 3
jge 0x7e663a
push edi
lea esi, [ebx + 0x78]
call fcn.0057b027
push eax
push esi
call fcn.0057f8cf
push edi
push esi
call fcn.0057f06e
lea edx, [esp + 0x38]
push edx
push esi
call fcn.0057fe1a
add esp, 0x1c
test eax, eax
jle 0x7e663a
lea eax, [esp + 0x24]
push eax
call fcn.0057e2c2
add esp, 4
test eax, eax
je 0x7e663a
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
mov dword [ebx + 0x58], 3
push ecx
push edx
push eax
call fcn.0057a6fe
add esp, 0xc
test eax, eax
jne 0x7e66b4
push 0
push 0x10000
push edi
push ebx
call fcn.007e6880
add esp, 0x10
cmp eax, 0xffffff80
jne 0x7e6659
cmp edx, 0xffffffff
je 0x7e66e1
test edx, edx
jl 0x7e66fb
jg 0x7e666b
test eax, eax
jb 0x7e66fb
cmp dword [ebx + 0x58], 3
jne 0x7e6684
push edi
call fcn.0057b027
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
je 0x7e66e8
push edi
call fcn.0057c3f5
add esp, 4
test eax, eax
jne 0x7e65ad
jmp 0x7e66f5
mov eax, dword [ebp]
test eax, eax
je 0x7e66a7
push eax
call fcn.0057e934
add esp, 4
mov dword [ebp], 0
mov dword [esi], 0
mov esi, 0xffffff7b
mov eax, dword [esp + 0x4c]
push eax
call fcn.0057c620
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0057d638
add esp, 8
mov eax, esi
mov dword [ebx + 0x58], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov esi, 0xffffff80
jmp 0x7e66b9
lea ecx, [ebx + 0x78]
push edi
push ecx
call fcn.0057f06e
add esp, 8
cmp dword [ebx + 0x58], 3
je 0x7e6702
mov esi, 0xffffff7c
jmp 0x7e66b9
xor ebp, ebp
cmp ebp, 2
jge 0x7e67bf
lea edx, [esp + 0x24]
lea eax, [ebx + 0x78]
push edx
push eax
call fcn.0057fe1a
add esp, 8
test eax, eax
je 0x7e6750
cmp eax, 0xffffffff
je 0x7e66b4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0057a6fe
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x7e66b9
inc ebp
cmp ebp, 2
jge 0x7e67bf
jmp 0x7e670d
cmp ebp, 2
jge 0x7e67bf
push 0
push 0x10000
push edi
push ebx
call fcn.007e6880
add esp, 0x10
test edx, edx
jl 0x7e66b4
jg 0x7e6778
test eax, eax
jb 0x7e66b4
push edi
call fcn.0057b027
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
push edi
je 0x7e67ae
call fcn.0057c3f5
add esp, 4
test eax, eax
je 0x7e6755
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x7e66b4
mov dword [esp + 0x10], 1
jmp 0x7e6755
lea eax, [ebx + 0x78]
push eax
call fcn.0057f06e
add esp, 8
jmp 0x7e6704
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret