Function at 0x10007486
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x12c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x12c], 0xffffffff
jne 0x10007502
mov dword [ebp - 0x2c], 0x100
push 0x10013978
lea eax, [ebp - 0x2c]
push eax
call fcn.1000db6a
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 8]
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x3c], 0
jne 0x1000753e
mov dword [ebp - 0x30], 0x101
push 0x10013978
lea eax, [ebp - 0x30]
push eax
call fcn.1000db6a
push 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
push ecx
call fcn.1000cf9f
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18c]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call fcn.1000cffe
push 0xf8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
push ecx
call fcn.1000cf9f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18c]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18c]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x100075d5
mov dword [ebp - 0x34], 0x102
push 0x10013978
lea edx, [ebp - 0x34]
push edx
call fcn.1000db6a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
cmp dword [ecx], 0x4550
je 0x100075fb
mov dword [ebp - 0x38], 0x103
push 0x10013978
lea edx, [ebp - 0x38]
push edx
call fcn.1000db6a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
xor edx, edx
mov dx, word [ecx + 6]
mov eax, dword [ebp + 8]
mov dword [eax + 0x130], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x130], 5
jbe 0x10007634
mov dword [ebp - 0x3c], 0x10b
push 0x10013978
lea edx, [ebp - 0x3c]
push edx
call fcn.1000db6a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
xor edx, edx
mov dx, word [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x130]
imul eax, eax, 0x28
lea edx, [eax + edx + 0x138]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0
jmp 0x1000767d
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x130]
jae 0x1000781d
push 0
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call fcn.1000cffe
push 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x194]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
call fcn.1000cf9f
mov byte [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x194]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x194]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx + 0x10]
lea eax, [ecx + edx - 1]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
call fcn.1000cffe
movsx eax, byte [ebp - 0x14]
test eax, eax
jne 0x10007740
push 1
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call fcn.1000cf9f
push 1
push 0xfffffffffffffffe
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
call fcn.1000cffe
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x10007705
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x194]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [edx + ecx*4 + 0x28], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x194]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x14]
add ecx, 3
mov eax, dword [ebp - 0x1c]
mov dword [edx + eax*4 + 0xc], ecx
cmp dword [ebp - 0x1c], 0
jne 0x100077ae
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 4]
jbe 0x100077ac
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x28]
mov dword [edx + 4], eax
jmp 0x100077f6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4 + 0x28]
sub eax, dword [ecx + edi*4 + 0x24]
cmp eax, dword [edx + 4]
jbe 0x100077f6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4 + 0x28]
sub eax, dword [ecx + edi*4 + 0x24]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4 + 0xc]
cmp ecx, dword [ebp - 0x24]
jbe 0x10007818
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + ecx*4 + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x10007674
mov eax, dword [ebp - 0x24]
push eax
call fcn.1000d575
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x124], eax
cmp dword [ebp - 0x40], 0
jne 0x10007859
mov dword [ebp - 0x44], 0x20a
push 0x10013978
lea ecx, [ebp - 0x44]
push ecx
call fcn.1000db6a
jmp 0x1000786c
mov dword [ebp - 4], 0xffffffff
mov eax, 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8