Function at 0x1002c770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004ccf0
push fcn.1003c160
mov eax, dword fs:[0]
push eax
add esp, 0xfffffe98
push ebx
push esi
push edi
lea edi, [ebp - 0xb8]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1004e038]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ecx, 0x10058481
call fcn.10016c3f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp + 8], 0
jne 0x1002c7e2
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x1002c827
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x128]
jmp 0x1002ca2c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
je 0x1002c86e
mov esi, esp
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x134]
jmp 0x1002ca2c
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x1002c8a9
mov esi, esp
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x140]
jmp 0x1002ca2c
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0
jmp 0x1002c8cc
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x44], ecx
jae 0x1002c989
push str..detour
imul eax, dword [ebp - 0x44], 0x28
add eax, dword [ebp - 0x38]
push eax
call fcn.100160aa
add esp, 8
test eax, eax
jne 0x1002c984
imul eax, dword [ebp - 0x44], 0x28
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + eax + 0xc], 0
je 0x1002c915
imul eax, dword [ebp - 0x44], 0x28
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + eax + 0x10], 0
jne 0x1002c917
jmp 0x1002c989
imul eax, dword [ebp - 0x44], 0x28
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0x40
jb 0x1002c942
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 4], 0x727444
je 0x1002c944
jmp 0x1002c989
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 8], 0
jne 0x1002c958
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x14c]
jmp 0x1002ca2c
jmp 0x1002c8c3
mov esi, esp
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x158]
jmp 0x1002ca2c
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x178
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret 4