Function at 0x472120
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61001c
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x298], eax
cmp dword [eax + 0x60], 8
lea edi, [eax + 0x4c]
mov eax, edi
jb 0x472162
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0x29c], esi
cmp esi, 0xffffffff
je 0x472404
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x4723fd
mov eax, dword [ebp - 0x2a8]
push dword [ebp - 0x29c]
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a0], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
test esi, esi
jl 0x472406
jg 0x4721dc
cmp dword [ebp - 0x2a0], 0xa00000
jb 0x472406
mov esi, dword [ebp - 0x298]
add esi, 0x68
mov eax, dword [esi]
test eax, eax
je 0x4721f2
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
lea ecx, [ebp - 0x278]
call fcn.0040bb80
lea eax, [ebp - 0x278]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.0040bb80
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005d894d
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472260
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040be20
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
movups xmmword [ebp - 0x260], xmm0
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00471c00
lea eax, [ebp - 0x260]
mov edx, 0x6653e4
push eax
lea ecx, [ebp - 0x290]
call fcn.0041d990
add esp, 4
mov byte [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4722e0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040ff20
lea ecx, [ebp - 0x290]
call fcn.0040bd90
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
mov word [ebp - 0x248], ax
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.00471f70
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00471da0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x278]
push eax
call fcn.0040be20
lea ecx, [ebp - 0x248]
call fcn.0040bd90
lea ecx, [ebp - 0x260]
call fcn.0040bd90
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0040bd90
lea edx, [ebp - 0x278]
mov ecx, edi
call fcn.00472010
test al, al
je 0x4723d7
cmp dword [edi + 0x14], 8
jb 0x4723ab
mov edi, dword [edi]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x4723d7
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], 0
mov ecx, dword [ebp - 0x298]
push esi
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 0x291], al
call fcn.0040bd90
mov al, byte [ebp - 0x291]
jmp 0x472406
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret 4