Function at 0x468498
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x49f644]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x11c
xor ebx, ebx
mov edi, edx
push eax
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4684f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402930
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
mov eax, dword [esi + 0x100]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x104]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push dword [esp + 0x64]
movzx eax, byte [esi + 5]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esi + 8]
push eax
movzx eax, byte [esi + 4]
push eax
push 0x4029b0
call dword [sym.imp.msvcrt.dll_wprintf]
movzx eax, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x64]
push eax
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x68]
push eax
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6c]
push eax
push 0x402a28
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x10]
add esp, 0x3c
or eax, dword [esi + 0x14]
jne 0x4685c4
push 0x402a90
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
jmp 0x4685fc
movzx eax, word [esp + 0x56]
push eax
movzx eax, word [esp + 0x58]
push eax
movzx eax, word [esp + 0x5a]
push eax
movzx eax, word [esp + 0x5c]
push eax
movzx eax, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x60]
push eax
push 0x402b00
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x20
push dword [esi + 0x40]
lea eax, [esi + 0x44]
push eax
push 0x402b68
call dword [sym.imp.msvcrt.dll_wprintf]
push dword [esi]
push 0x402bb0
call dword [sym.imp.msvcrt.dll_wprintf]
push dword [esi + 0x1c]
push 0x402bec
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x1c
cmp dword [esi + 0x24], 1
ja 0x46863f
push 0x402c28
call dword [sym.imp.msvcrt.dll_wprintf]
jmp 0x46864e
push dword [esi + 0x24]
push 0x402ca0
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
push dword [esi + 0x20]
push 0x402cd8
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
cmp dword [esi + 0x20], ebx
jne 0x46866e
push 0x402d10
jmp 0x468775
push 0x402d40
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test al, 1
je 0x468690
push 0x402d44
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test al, 2
je 0x4686a3
push 0x402d5c
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test al, 4
je 0x4686b6
push 0x402d70
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test al, 8
je 0x4686c9
push 0x402d80
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test al, 0x20
je 0x4686dc
push 0x402d94
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test al, 0x40
je 0x4686ef
push 0x402db0
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test eax, 0x100
je 0x468705
push 0x402dcc
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test eax, 0x800
je 0x46871b
push 0x402de4
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test eax, 0x4000
je 0x468731
push 0x402df8
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test eax, 0x8000
je 0x468747
push 0x402e1c
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test eax, 0x10000
je 0x46875d
push 0x402e3c
call dword [sym.imp.msvcrt.dll_wprintf]
mov eax, dword [esi + 0x20]
pop ecx
test eax, 0x1000000
je 0x468770
push 0x402e4c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
push 0x402e5c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
push dword [esi + 0xc]
push 0x402e60
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
test edi, edi
je 0x4687df
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4687ae
push 0x402ea0
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
jmp 0x4687df
push ebx
push 0x100000
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004834e0
cmp edx, ebx
jl 0x4687df
jg 0x4687cc
cmp eax, dword [esi + 0x1c]
jbe 0x4687df
push edx
push eax
push dword [esi + 0x1c]
push 0x402f00
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
cmp dword [esi + 0x20], 2
jne 0x4687f6
cmp dword [esi + 0x24], ebx
jne 0x4687f6
push 0x402f80
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00482990
mov esp, ebp
pop ebp
ret