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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144e4eb
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x145b084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp edi, 0xffffffff
jne 0x14066fd
push 6
jmp 0x1406dbd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x3e8], eax
cmp eax, 0xffffffff
je 0x1406dc3
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x1406dc3
push 0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x1406dc3
mov eax, 0x5a4d
cmp word [edx], ax
je 0x1406763
push 0xc1
jmp 0x1406dbd
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x3dc], ecx
mov dword [esi + 0x3d0], 0
mov eax, dword [edx + 0x3c]
add eax, 7
mov dword [ebp + 8], ecx
and eax, 0xfffffff8
mov dword [esi + 0x3d4], eax
lea eax, [esi + 0x58]
movups xmm0, xmmword [edx]
mov edi, eax
movups xmmword [esi + 0x18], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [edx + 0x30]
movups xmmword [esi + 0x48], xmm0
lea esi, [ecx + edx]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
cmp dword [eax], 0x4550
je 0x14067c8
push 0xbf
jmp 0x1406dbd
mov edi, dword [ebp - 0x30]
movzx eax, word [edi + 0x6c]
test ax, ax
je 0x1406db8
mov ecx, dword [ebp + 8]
add ecx, 0x18
add ecx, eax
movzx eax, word [edi + 0x5e]
mov dword [edi + 0x3e0], ecx
cmp eax, 0x10
ja 0x1406db8
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [ecx + edx]
push eax
lea eax, [edi + 0x150]
push eax
call fcn.0140aa10
movzx eax, word [edi + 0x5e]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x1c], esi
add esp, 0xc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
cmp cx, ax
jae 0x14068c1
lea esi, [edi + 0x164]
mov dword [ebp + 8], eax
mov ecx, str..detour
lea eax, [esi - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1406858
test dl, dl
je 0x1406854
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1406858
add eax, 2
add ecx, 2
test dl, dl
jne 0x1406838
xor eax, eax
jmp 0x140685d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14068b1
mov eax, dword [edi + 0xc]
mov ecx, dword [esi]
add eax, ecx
movups xmm2, xmmword [eax + 0x20]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
psrldq xmm2, 0xc
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [eax + 0x30]
movd edx, xmm2
movups xmmword [ebp - 0x5c], xmm0
movd dword [ebp - 0x1c], xmm1
test edx, edx
je 0x14068a3
lea eax, [ecx + 0x40]
mov dword [edi + 0x3d4], edx
mov dword [edi + 0x3d0], eax
mov eax, dword [esi - 8]
mov edx, dword [esi - 4]
add edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
add esi, 0x28
sub dword [ebp + 8], 1
jne 0x1406830
mov esi, dword [ebp - 0x1c]
push dword [edi + 0xd8]
mov ecx, edi
call fcn.01406f80
push esi
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.01406f80
mov ecx, dword [ebp + 8]
test eax, eax
mov esi, ecx
cmovne esi, eax
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x1406db8
test esi, esi
je 0x1406db8
xor edx, edx
mov eax, ecx
nop word [eax + eax]
cmp dword [eax], 0
jne 0x140690b
cmp dword [eax + 0x10], 0
je 0x1406911
inc edx
add eax, 0x14
jmp 0x1406900
mov dword [ebp - 0x30], edx
lea eax, [edi + 0x400]
mov dword [ebp - 0x20], eax
mov dword [eax], 0
mov dword [ebp - 0x2c], 0
test edx, edx
je 0x1406be5
push dword [ecx + 0xc]
mov ecx, edi
call fcn.01406f80
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1406db8
push 0x24
call fcn.01409757
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x140697e
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
call fcn.014059b0
mov esi, eax
mov dword [ebp - 0x1c], eax
jmp 0x1406983
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1406c51
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
mov dword [eax], esi
inc dword [edi + 0x404]
call fcn.01406100
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x1406dc3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 0x10]
cmp eax, dword [ebp - 0x24]
jb 0x14069ff
cmp eax, dword [ebp - 0x28]
jae 0x14069ff
mov dword [esi + 0x1c], 0
mov dword [esi + 4], 1
jmp 0x1406bcf
mov eax, dword [ebp - 0x18]
mov ecx, edi
push dword [eax + 0xc]
call fcn.01406f80
test eax, eax
je 0x1406db8
push eax
call fcn.01406100
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1406dc3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
jne 0x1406a34
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.01406f80
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
test eax, eax
jne 0x1406a4b
mov eax, dword [ecx + 0x10]
push eax
mov ecx, edi
call fcn.01406f80
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1406bc8
cmp dword [eax], esi
je 0x1406bc8
nop dword [eax + eax]
inc esi
cmp dword [eax + esi*4], 0
jne 0x1406a70
mov dword [ebp - 0x40], esi
test esi, esi
je 0x1406bc8
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x14
mov dword [ebp - 0x48], esi
mov dword [eax + 0xc], esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.014092d2
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x1406ae0
push fcn.01405ba0
push 0x1405a00
push esi
mov dword [eax], esi
add eax, 4
push 0x14
push eax
mov dword [ebp - 0x3c], eax
call fcn.01409db5
mov edx, dword [ebp - 0x3c]
jmp 0x1406ae2
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
test edx, edx
je 0x1406c51
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x1406bc8
mov ecx, dword [ebp - 0x14]
lea esi, [edx + 4]
mov eax, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x14], ecx
nop dword [eax]
nop word [eax + eax]
xor edx, edx
mov dword [esi], 0
mov dword [esi + 4], 0
mov word [esi - 4], dx
mov dword [esi + 0xc], edx
mov dword [esi + 8], edx
mov eax, dword [ecx + eax]
test eax, eax
jns 0x1406b4a
movzx eax, ax
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x1406baa
push eax
mov ecx, edi
call fcn.01406f80
test eax, eax
je 0x1406b74
mov cx, word [eax]
add eax, 2
push eax
mov word [esi - 4], cx
call fcn.01406100
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x1406dc3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
jns 0x1406b87
movzx eax, ax
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x1406baa
push eax
mov ecx, edi
call fcn.01406f80
test eax, eax
je 0x1406baa
add eax, 2
push eax
call fcn.01406100
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x1406dc3
inc dword [ebp - 0x1c]
add esi, 0x14
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, 4
cmp ecx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jb 0x1406b20
add dword [ebp - 0x18], 0x14
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x2c]
add ecx, 0x14
inc esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x30]
jb 0x1406932
xor eax, eax
mov dword [edi + 0x3e4], 0
mov dword [ebp - 0x30], 0
cmp ax, word [edi + 0x5e]
jae 0x1406d52
lea esi, [edi + 0x164]
mov dword [ebp + 8], esi
nop dword [eax + eax]
mov eax, dword [esi]
add eax, dword [esi - 4]
mov ecx, dword [edi + 0x3e4]
cmp eax, ecx
cmova ecx, eax
lea eax, [esi - 0x14]
mov dword [ebp - 0x40], ecx
mov dword [edi + 0x3e4], ecx
mov ecx, str..detour
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1406c58
test dl, dl
je 0x1406c4d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1406c58
add eax, 2
add ecx, 2
test dl, dl
jne 0x1406c31
xor eax, eax
jmp 0x1406c5d
push 0xe
jmp 0x1406dbd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1406d39
mov esi, dword [esi]
mov edx, dword [edi + 0xc]
add edx, esi
movups xmm1, xmmword [edx]
movups xmm0, xmmword [edx + 0x30]
movups xmm2, xmmword [edx + 0x10]
movups xmm3, xmmword [edx + 0x20]
movups xmmword [ebp - 0x5c], xmm0
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movaps xmm0, xmm2
movups xmmword [ebp - 0x8c], xmm1
test ecx, ecx
psrldq xmm0, 4
cmove ecx, eax
mov eax, dword [ebp - 0x80]
sub eax, ecx
mov dword [ebp - 0x34], eax
lea eax, [edx + ecx]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, esi
mov esi, dword [ebp + 8]
cmp eax, ecx
cmova ecx, eax
mov eax, 0xffff
add word [edi + 0x5e], ax
mov dword [edi + 0x3e4], ecx
movd dword [edi + 0xdc], xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd dword [edi + 0x128], xmm0
movaps xmm0, xmm3
movd dword [edi + 0xd8], xmm2
movd dword [edi + 0x130], xmm3
psrldq xmm2, 0xc
movd dword [edi + 0x12c], xmm2
psrldq xmm0, 4
movd dword [edi + 0x134], xmm0
psrldq xmm3, 8
mov dword [edi + 0xb0], 0
movd dword [edi + 0xa8], xmm3
mov dword [edi + 0x408], 1
mov edx, dword [ebp - 0x30]
add esi, 0x28
movzx eax, word [edi + 0x5e]
inc edx
mov dword [ebp - 0x30], edx
mov dword [ebp + 8], esi
cmp edx, eax
jb 0x1406c10
push 0xc
call fcn.01409757
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1406d87
push dword [ebp - 0x34]
xorps xmm0, xmm0
mov ecx, eax
push dword [ebp - 0x38]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.01405990
jmp 0x1406d89
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], eax
test eax, eax
jne 0x1406d9f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4