Function at 0x401f80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x18c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401fcb
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
lea ecx, [ebx - 0x88]
push ecx
push edi
call esi
push 0x40
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.00407600
push 0x48
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.00407600
add esp, 0x18
mov dword [ebp - 0x188], 0
lea eax, [ebp - 0x188]
push 0
push eax
push 0x88
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0
push edi
call esi
cmp dword [ebp - 0x104], 0x1337beef
jne 0x402183
cmp dword [ebp - 0x100], 0xdead1337
jne 0x402183
sub ebx, 0x88
lea ecx, [ebp - 0x194]
push ebx
call fcn.004014b0
push 0
lea eax, [ebp - 0x188]
push eax
push ebx
push dword [ebp - 0x194]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40215b
push 0x40
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00407600
mov edi, dword [ebp - 0x194]
lea eax, [ebp - 0x64]
push 0
push ebx
push edi
push eax
call fcn.00403180
push 0x88
lea eax, [ebp - 0xec]
mov dword [ebp - 0x24], 0x725e8104
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0xa09f6cbc
push 0
push eax
mov dword [ebp - 0x1c], 0x7179e921
mov dword [ebp - 0x18], 0xc41291ea
mov dword [ebp - 0x14], 0xdf25b8fa
mov dword [ebp - 0x10], 0xf1cd8357
mov dword [ebp - 0xc], 0x1fdabd90
mov dword [ebp - 8], 0x86063b19
movlpd qword [ebp - 0x190], xmm0
call fcn.00407600
lea eax, [ebp - 0x24]
push eax
push 0
push 0x88
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.00403a80
add esp, 0x40
test eax, eax
jne 0x402161
lea ecx, [ebp - 0xec]
lea edx, [ebp - 0x64]
lea esi, [eax + 0x3c]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402161
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402146
mov bl, 1
jmp 0x402163
mov edi, dword [ebp - 0x194]
xor bl, bl
test edi, edi
je 0x402170
push edi
call fcn.00405eed
add esp, 4
pop esi
mov al, bl
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e8d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1a4], xmm0
push 0x30
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1d4]
push 0
push eax
mov dword [ebp - 0x1a4], 0x10
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0x198], 0
mov dword [ebp - 0xfc], 0xaac56b
mov dword [ebp - 0xf8], 0x11d0cd44
mov dword [ebp - 0xf4], 0xc000c28c
mov dword [ebp - 0xf0], 0xee95c24f
call fcn.00407600
xor eax, eax
mov dword [ebp - 0x1d4], 0x30
add esp, 0xc
mov dword [ebp - 0x1d0], 0
cmp byte [ebp + 0xc], al
mov ecx, 0x1000
mov dword [ebp - 0x1cc], 0
setne al
mov dword [ebp - 0x1c8], 2
cmp byte [0x41e3b1], 0
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1ac]
cmovne eax, ecx
mov dword [ebp - 0x1c0], 1
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x1b8], 1
push eax
push 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a8], 0
call sub.WINTRUST.dll_WinVerifyTrust
mov esi, eax
mov dword [ebp - 0x1b8], 2
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0xfc]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
pop edi
call fcn.00405e8d
mov esp, ebp
pop ebp
ret