Function at 0x461270
Capabilities:
Get file size

Disassembly:
sub esp, 0x2e8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x2f0]
push ebx
mov ebx, dword [esp + 0x2f0]
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x1c], eax
mov esi, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x20], ebx
push 0
push eax
mov dword [esp + 0x20], 0x800b0100
mov dword [esp + 0x38], 0
call sub.MSVCR120.dll_memset
add esp, 8
mov dword [esp + 0x60], 0
xorps xmm0, xmm0
mov dword [esp + 0x84], 0xf750e6c3
mov edx, 0x80000000
mov dword [esp + 0x88], 0x11d138ee
movdqu xmmword [esp + 0x64], xmm0
push 0
push 3
push ecx
push 1
mov ecx, ebx
mov dword [esp + 0x9c], 0xc000e585
movdqu xmmword [esp + 0x84], xmm0
mov dword [esp + 0xa0], 0xee95c24f
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.00436a60
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x46162d
test ebx, ebx
je 0x46162d
lea eax, [esp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x461626
cmp dword [esp + 0x94], 0
jg 0x461626
jl 0x46138e
cmp dword [esp + 0x90], 0x2000000
ja 0x461626
push 0x100
mov dword [esp + 0x28], 0x100
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov edi, eax
lea eax, [esp + 0x24]
push 0
push edi
push eax
mov eax, dword [esi + 4]
push ebx
call eax
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
jne 0x4613f7
push edi
call ebp
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov edi, eax
lea eax, [esp + 0x24]
push 0
push edi
push eax
mov eax, dword [esi + 4]
push ebx
call eax
test eax, eax
jne 0x4613f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebp
add esp, 4
jmp 0x46162d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esi + 8]
call eax
test eax, eax
je 0x4613ec
mov eax, dword [0x538098]
xor ecx, ecx
movdqu xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________]
mov dword [esp + 0x2e8], eax
mov edx, 2
mov ax, word [0x53809c]
mov word [esp + 0x2ec], ax
mov eax, dword [esp + 0x24]
movdqu xmmword [esp + 0x2a8], xmm0
movdqu xmm0, xmmword [0x538068]
lea eax, [eax*2 + 1]
mul edx
movdqu xmmword [esp + 0x2b8], xmm0
movdqu xmm0, xmmword [0x538078]
movdqu xmmword [esp + 0x2c8], xmm0
seto cl
movdqu xmm0, xmmword [0x538088]
neg ecx
or ecx, eax
push ecx
movdqu xmmword [esp + 0x2dc], xmm0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
je 0x4614e0
jmp 0x4614b0
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [esp + eax + 0x2a8]
mov word [ebx + ecx*4], ax
movzx eax, byte [ecx + edi]
and eax, 0xf
movsx eax, byte [esp + eax + 0x2a8]
mov word [ebx + ecx*4 + 2], ax
inc ecx
mov eax, dword [esp + 0x24]
cmp ecx, eax
jb 0x4614b0
xor ecx, ecx
push ecx
push ecx
mov word [ebx + eax*4], cx
push dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
push edi
push dword [esp + 0x38]
call eax
push edi
mov dword [esp + 0x24], eax
call ebp
mov edi, dword [esp + 0x24]
add esp, 4
test edi, edi
je 0x46160a
push 0x208
lea eax, [esp + 0xa0]
mov dword [esp + 0x9c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x98]
push 0
push eax
mov eax, dword [esi + 0x10]
push edi
call eax
test eax, eax
je 0x4615fe
cmp byte [esi], 0
lea eax, [esp + 0x9c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x24
mov dword [esp + 0x68], ebx
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], eax
je 0x4615a4
or dword [esp + 0x54], 0x1200
jmp 0x4615a9
or dword [esp + 0x54], 0x10
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x84]
push eax
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4615e2
xor edx, edx
mov word [ecx], dx
cmp eax, 0x800b0100
je 0x4615e2
push ecx
push ecx
push dword [esp + 0x54]
mov ecx, esi
call fcn.00461080
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], 2
push eax
lea eax, [esp + 0x84]
push eax
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
call eax
mov eax, dword [esi + 0x14]
push 0
push edi
push dword [esp + 0x30]
call eax
push ebx
call ebp
mov eax, dword [esi + 0x18]
add esp, 4
push 0
push dword [esp + 0x2c]
call eax
push dword [esp + 0x14]
call fcn.00461650
jmp 0x461632
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00505b1e
add esp, 0x2e8
ret 0xc