Function at 0x86f770
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8f3e68
push 0x87b11c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 4
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
je 0x86f7be
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x30], ebx
cmp word [ebx], 0x5a4d
je 0x86f7ef
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x38], eax
cmp dword [eax], 0x4550
je 0x86f81b
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
cmp word [eax + 0x18], 0x20b
jne 0x86f840
mov dword [ebp - 0x40], eax
mov esi, dword [eax + 0x88]
mov dword [ebp - 0x2c], esi
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x24], eax
jmp 0x86f84e
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x24], eax
mov esi, ecx
cmp esi, edx
jne 0x86f86e
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add esi, ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], edx
mov edi, dword [ebp + 0xc]
cmp edi, 0x10000
jae 0x86f88c
mov dword [ebp - 0x34], edi
lea ecx, [edi - 1]
jmp 0x86f99f
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov eax, edi
mov dword [ebp - 0x44], eax
cmp byte [eax], 0
je 0x86f8c7
inc eax
mov dword [ebp - 0x44], eax
inc ecx
mov dword [ebp - 0x50], ecx
cmp ecx, 0x100
jb 0x86f896
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x20]
add eax, ebx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [esi + 0x18]
jae 0x86f966
mov esi, dword [eax]
add esi, ebx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x44], edi
push 4
push esi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
je 0x86f915
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 0x5c], 1
xor eax, eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x50]
jae 0x86f932
movsx edx, byte [edi]
xor ecx, ecx
mov cl, byte [esi]
sub ecx, edx
je 0x86f942
mov byte [ebp - 0x5c], 0
mov al, byte [ebp - 0x5c]
test al, al
je 0x86f94d
mov byte [ebp - 0x54], 1
mov esi, dword [ebp - 0x3c]
jmp 0x86f966
inc esi
mov dword [ebp - 0x60], esi
inc edi
mov dword [ebp - 0x44], edi
inc eax
jmp 0x86f91b
mov ecx, dword [ebp - 0x4c]
add ecx, 4
mov dword [ebp - 0x4c], ecx
inc dword [ebp - 0x34]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x3c]
mov eax, ecx
jmp 0x86f8d6
mov al, byte [ebp - 0x54]
test al, al
jne 0x86f989
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x24]
add eax, ebx
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx*2]
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [esi + 0x1c]
add eax, ebx
mov dword [ebp - 0x28], eax
lea eax, [eax + ecx*4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
add eax, ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + ebx]
cmp eax, edx
jb 0x86fa2a
mov edx, dword [ebp - 0x24]
add edx, ecx
add edx, ebx
cmp eax, edx
jae 0x86fa2a
lea edx, [ebp - 0xe4]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x96dffc
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0087ccbc
add esp, 8
mov dword [ebp - 0x64], eax
test eax, eax
je 0x86fa13
mov byte [eax], 0
inc eax
mov dword [ebp - 0x64], eax
push eax
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call fcn.0086f770
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8