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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x99f940
push 0x85b6a4
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 0x8c5cce
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 0x8c5cff
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 0x8c5d2b
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 0x8c5d50
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 0x8c5d5e
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 0x8c5d7e
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 0x8c5d9c
mov dword [ebp - 0x34], edi
lea ecx, [edi - 1]
jmp 0x8c5eaf
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov eax, edi
mov dword [ebp - 0x44], eax
cmp byte [eax], 0
je 0x8c5dd7
inc eax
mov dword [ebp - 0x44], eax
inc ecx
mov dword [ebp - 0x50], ecx
cmp ecx, 0x100
jb 0x8c5da6
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 0x8c5e76
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 0x8c5e25
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 0x8c5e42
movsx edx, byte [edi]
xor ecx, ecx
mov cl, byte [esi]
sub ecx, edx
je 0x8c5e52
mov byte [ebp - 0x5c], 0
mov al, byte [ebp - 0x5c]
test al, al
je 0x8c5e5d
mov byte [ebp - 0x54], 1
mov esi, dword [ebp - 0x3c]
jmp 0x8c5e76
inc esi
mov dword [ebp - 0x60], esi
inc edi
mov dword [ebp - 0x44], edi
inc eax
jmp 0x8c5e2b
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 0x8c5de6
mov al, byte [ebp - 0x54]
test al, al
jne 0x8c5e99
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 0x8c5f3a
mov edx, dword [ebp - 0x24]
add edx, ecx
add edx, ebx
cmp eax, edx
jae 0x8c5f3a
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 0xa385bc
lea ecx, [ebp - 0xe4]
push ecx
call fcn.008cb35e
add esp, 8
mov dword [ebp - 0x64], eax
test eax, eax
je 0x8c5f23
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.008c5c80
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