Function at 0x470e10
Capabilities:
Get file size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x58]
sub esp, 0x7c
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
sub esp, 8
test eax, eax
je 0x470f60
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], 0xdf
mov dword [ebp - 0x68], eax
add eax, 0x80000000
mov dword [ebp - 0x64], edx
adc edx, 0
cmp edx, 0
jbe 0x470ee0
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
test esi, esi
je 0x471057
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ecx, eax
cmp eax, 0xf
ja 0x470f80
cmp eax, 1
je 0x470fb8
test eax, eax
jne 0x471050
mov eax, edi
mov dword [ebp - 0x30], ecx
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0xc]
mov dword [ebx + 4], eax
cmp edx, edi
je 0x470fc8
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], edx
mov byte [ebx], 0
mov dword [ebx + 0x1c], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
cmp eax, 0x7fffffff
je 0x470e65
lea edx, [eax + 1]
add eax, 0x41
mov dword [ebp - 0x5c], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, dword [ebp - 0x5c]
pxor xmm0, xmm0
mov ecx, eax
lea eax, [eax + edx]
mov dword [ebp - 0x4c], edx
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], ecx
mov dword [esp], edx
mov edx, edi
call fcn.00480260
cmp byte [ebp - 0x40], 0
jne 0x471068
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
cmp eax, 0x5ec0c0
je 0x470e65
mov dword [esp], eax
call fcn.004a0a88
jmp 0x470e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], edi
test esi, esi
jne 0x470e73
jmp 0x471057
lea eax, [eax + 1]
mov dword [ebp - 0x68], ecx
mov dword [esp], eax
call fcn.0054fb80
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [esp + 8], ecx
mov dword [ebp - 0x68], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x68]
jmp 0x470e99
movzx eax, byte [esi]
mov byte [ebp - 0x2c], al
jmp 0x470e97
mov edx, dword [ebp - 0x30]
lea esi, [edx + 1]
mov dword [ebp - 0x5c], esi
cmp esi, 4
jb 0x471020
mov ecx, esi
mov esi, dword [edi]
mov dword [ebx + 0xc], esi
mov esi, dword [edi + ecx - 4]
mov dword [eax + ecx - 4], esi
lea esi, [ebx + 0x10]
and esi, 0xfffffffc
sub eax, esi
add ecx, eax
sub edi, eax
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x470ec3
mov dword [ebp - 0x5c], edx
and ecx, 0xfffffffc
xor eax, eax
mov edx, dword [edi + eax]
mov dword [esi + eax], edx
add eax, 4
cmp eax, ecx
jb 0x471005
mov edx, dword [ebp - 0x5c]
jmp 0x470ec3
test esi, esi
je 0x470ec3
movzx ecx, byte [edi]
mov byte [ebx + 0xc], cl
test esi, 2
je 0x470ec3
mov ecx, esi
movzx esi, word [edi + esi - 2]
mov word [eax + ecx - 2], si
jmp 0x470ec3
mov eax, edi
jmp 0x470f97
mov dword [esp], 0x58f0f4
call fcn.00552460
lea esi, cs:[esi]
cmp byte [ebp - 0x38], 0
jne 0x4710b0
mov dword [esp], 0
lea ecx, [ebp - 0x50]
call fcn.00466930
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov byte [ebx], 1
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 8], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x6c], eax
je 0x471110
mov dword [esp], eax
lea ecx, [ebp - 0x50]
call fcn.00466930
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x50]
mov edx, edi
sub esp, 4
call fcn.004754b0
movzx eax, byte [ebp - 0x34]
test al, al
jne 0x471169
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x5c], edi
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x5ec0c0
je 0x4710ff
mov byte [ebp - 0x68], al
mov dword [esp], ecx
call fcn.004a0a88
movzx eax, byte [ebp - 0x68]
test al, al
jne 0x47108c
jmp 0x470e65
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x50]
mov dword [esp], 1
lea eax, [ebp - 0x34]
mov edx, edi
call fcn.00480260
movzx eax, byte [ebp - 0x34]
test al, al
je 0x4710df
cmp byte [ebp - 0x2c], 0
je 0x471177
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
mov dword [esp], eax
call fcn.00466930
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x50]
mov edx, edi
sub esp, 4
call fcn.004754b0
movzx eax, byte [ebp - 0x48]
test al, al
jne 0x4711a0
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x5c], edi
jmp 0x4710e5
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x60], edi
jmp 0x4710ff
mov byte [ebp - 0x6c], al
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
mov dword [esp], eax
call fcn.00466930
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
movzx eax, byte [ebp - 0x6c]
jmp 0x4710ff
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x50], 0x5ec0c0
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x60], edi
jmp 0x4710e5