Function at 0x4013e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x100
push eax
push 0x100
lea eax, [ebp - 0x514]
mov esi, ecx
push eax
push 0x100
lea eax, [ebp - 0x10c]
push eax
push 3
lea eax, [ebp - 0x538]
push eax
push esi
call fcn.00406f2a
add esp, 0x24
test eax, eax
je 0x401450
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401ee3
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x538], 0
jne 0x40147d
cmp byte [ebp - 0x10c], 0
jne 0x40147d
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401ee3
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41b8ec]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jns 0x4014d5
push 0
call edi
mov dword [0x41b8ec], 0
test eax, eax
je 0x4014d7
push str.__tiaitadnsd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4014ce
mov dword [0x41b8ec], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401ee3
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41b8ec]
test eax, eax
jne 0x4014b8
lea eax, [ebp - 0x20c]
push str..dll
push eax
call fcn.00406bac
add esp, 8
test eax, eax
jne 0x4014f6
push esi
call edi
test eax, eax
jne 0x4014b8
push 0x104
lea eax, [ebp - 0x414]
mov dword [ebp - 0x544], 0
push eax
push 0xffffffffffffffff
push esi
push 1
push 0
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40143d
mov eax, dword [ebx]
test eax, eax
je 0x40159e
cmp eax, 0xffffffff
je 0x40159e
lea eax, [ebx + 8]
push esi
push eax
call fcn.00406bac
add esp, 8
test eax, eax
jne 0x401587
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x401587
cmp dword [ebx + 4], 0
jne 0x4014b8
push 0x241
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401ee3
mov esp, ebp
pop ebp
ret
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
jmp 0x4015ae
mov dword [ebx + 4], 0
test eax, eax
je 0x4015ae
cmp eax, 0xffffffff
jne 0x4015e4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x40143d
push esi
lea eax, [ebx + 8]
push 0x104
push eax
call fcn.00404da4
add esp, 0xc
push 0
lea eax, [ebp - 0x528]
mov dword [ebp - 0x52c], 0
push eax
lea eax, [ebp - 0x534]
mov dword [ebp - 0x534], 0
push eax
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x528], 0
push eax
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x544]
push eax
push 0
push 2
push 0x400
lea eax, [ebp - 0x414]
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x401569
lea eax, [ebp - 0x52c]
push eax
push 0
push 0
push 6
push dword [ebp - 0x528]
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
mov esi, eax
test esi, esi
je 0x4016f8
push dword [ebp - 0x52c]
call fcn.00406f81
mov edi, eax
add esp, 4
test edi, edi
jne 0x401699
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ee3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x52c]
push eax
push edi
push 0
push 6
push dword [ebp - 0x528]
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
mov esi, eax
mov dword [ebp - 0x530], esi
test esi, esi
je 0x4016ef
mov eax, dword [edi + 0xc]
cmp eax, 0x10
jne 0x40183a
mov ecx, dword [edi + 0x10]
lea esi, [eax - 4]
mov edx, 0x41b8cc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401817
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4016d4
mov esi, dword [ebp - 0x530]
push edi
call fcn.00406c85
add esp, 4
push dword [ebp - 0x528]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
push 0
push dword [ebp - 0x534]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test esi, esi
je 0x401569
mov edi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
lea eax, [ebp - 0x414]
mov dword [ebp - 0x550], eax
xorps xmm0, xmm0
mov eax, dword [ebx]
mov dword [ebp - 0x54c], eax
lea eax, [ebp - 0x554]
mov dword [ebp - 0x570], eax
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x524]
mov dword [ebp - 0x548], 0
push eax
push 0
mov dword [ebp - 0x554], 0x10
movlpd qword [ebp - 0x584], xmm0
movlpd qword [ebp - 0x568], xmm0
movlpd qword [ebp - 0x55c], xmm0
mov dword [ebp - 0x588], 0x34
mov dword [ebp - 0x57c], 2
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x560], 0x10
mov dword [ebp - 0x574], 1
mov dword [ebp - 0x56c], 1
mov dword [ebp - 0x524], 0xaac56b
mov dword [ebp - 0x520], 0x11d0cd44
mov dword [ebp - 0x51c], 0xc000c28c
mov dword [ebp - 0x518], 0xee95c24f
call edi
mov esi, eax
mov dword [ebp - 0x56c], 2
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x524]
push eax
push 0
call edi
test esi, esi
jne 0x401569
mov dword [ebx + 4], 1
jmp 0x4014b8
mov ecx, dword [edi + 0x10]
mov edx, 0x41b8dc
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401875
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401824
jmp 0x4016e9
cmp eax, 0x13
jne 0x401875
mov ecx, dword [edi + 0x10]
lea esi, [eax - 4]
mov edx, 0x41b8f0
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401875
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401850
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x401875
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x4016e9
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x4016ef