Function at 0x453bf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4cbec8]
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
mov ecx, eax
push 0
mov dword [esp + 0x20], eax
call fcn.004a2db0
mov esi, dword [ebp + 8]
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov eax, dword [0x4c8024]
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
mov dword [esp + 0x20], 0xffffffff
mov ebx, dword [eax + 0xdc]
and ebx, 0x7fffffff
mov dword [esp + 0x24], ebx
nop dword [eax]
mov edi, esi
mov al, byte [edi]
cmp al, 0x20
je 0x453c5c
cmp al, 9
jne 0x453c5f
inc edi
jmp 0x453c52
cmp al, 0x2a
jne 0x453da2
mov bl, byte [edi + 1]
lea esi, [edi + 1]
movzx eax, bl
test eax, 0xffffff80
je 0x453c7b
xor edx, edx
jmp 0x453c89
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov edx, eax
mov al, bl
and al, 0xdf
test edx, edx
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movsx eax, cl
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x453cae.68
movzx eax, byte [eax + 0x454244]
jmp dword [eax*4 + 0x454230]
mov byte [esp + 0xd], 1
jmp case.0x453cae.68
lea ecx, [edi + 2]
call fcn.00440570
mov bl, byte [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
test bl, bl
je 0x453cf4
mov ecx, 0x4bb7f4
mov al, 0x20
nop dword [eax]
cmp bl, al
je 0x453d28
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x453ce0
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x453cd5
mov eax, dword [0x4c8024]
mov dword [eax + 0x30], 0x57
test byte [eax + 0xe0], 1
jne 0x453d84
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
dec esi
jmp case.0x453cae.68
lea eax, [edi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dl, byte [esi]
add esp, 4
mov dword [esp + 0x24], eax
test dl, dl
je 0x453cf4
mov ecx, 0x4bb7f4
mov al, 0x20
nop dword [eax]
cmp dl, al
je 0x453d28
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x453d50
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x453d42
jmp 0x453cf4
mov byte [esp + 0xe], 1
cmp byte [esi], 0
je 0x453c50
inc esi
cmp byte [esi], 0
je 0x453c50
inc esi
jmp 0x453c50
mov ecx, dword [esp + 0x14]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x453ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jmp 0x453d07
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push ebx
movq qword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, 0xffffffff
jne 0x453e0d
call edi
test eax, eax
jne 0x453e1a
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, esi
and eax, ecx
cmp eax, 0xffffffff
jne 0x453e36
call edi
mov ecx, dword [0x4c8024]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4c8024]
jmp 0x453d00
mov edx, dword [esp + 0x20]
cmp ecx, edx
jb 0x453e4c
mov eax, dword [esp + 0x1c]
ja 0x453e48
cmp esi, eax
jbe 0x453e4c
mov esi, eax
mov ecx, edx
test ecx, ecx
jne 0x454211
cmp esi, 0xfffffffd
ja 0x454211
mov eax, esi
or eax, ecx
jne 0x453e95
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4c8024]
mov dword [eax + 0x30], 0
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esp + 0xd], 0
je 0x453f6c
mov edi, dword [esp + 0x10]
mov al, byte [edi + 0x17]
test al, al
jne 0x453eb1
mov eax, dword [edi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
je 0x453f6c
push 0
push 1
lea eax, [esi + 1]
mov byte [esp + 0x17], 1
push eax
push 0
mov ecx, edi
call fcn.004a2db0
cmp eax, 1
jne 0x453f9c
push 0
push eax
mov ecx, edi
call fcn.00401550
mov edi, eax
test edi, edi
je 0x453f9c
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c8024]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x454168
cmp byte [esp + 0xd], 0
jne 0x4540f6
mov ecx, dword [esp + 0x18]
cmp ecx, 3
jb 0x453fae
cmp byte [edi], 0xef
jne 0x453fae
cmp byte [edi + 1], 0xbb
jne 0x453fae
cmp byte [edi + 2], 0xbf
jne 0x453fae
mov esi, dword [esp + 0x10]
lea eax, [ecx - 3]
push 0xfde9
push eax
lea eax, [edi + 3]
mov ecx, esi
push eax
call fcn.004a3930
test eax, eax
jne 0x454041
xor ebx, ebx
jmp 0x454045
lea eax, [esi + 2]
mov byte [esp + 0xf], 0
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x453eec
mov ecx, dword [esp + 0x14]
push 0x4b6ba9
push eax
push str.Out_of_memory.
call fcn.0043eaa0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, 2
jb 0x453fee
cmp byte [edi], 0xff
jne 0x453fee
cmp byte [edi + 1], 0xfe
jne 0x453fee
mov dl, 1
sub esp, 0xc
lea eax, [ecx - 2]
test dl, dl
cmove eax, ecx
mov ecx, dword [esp + 0x1c]
shr eax, 1
test dl, dl
push eax
lea eax, [edi + 2]
cmove eax, edi
push eax
call fcn.004a3a00
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [esp + 0x10]
mov ebx, eax
jmp 0x454045
mov ebx, dword [esp + 0x24]
xor dl, dl
cmp ebx, 0x4b0
je 0x453fc0
test ebx, ebx
je 0x454027
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp ebx, eax
je 0x454023
mov esi, dword [esp + 0x10]
mov ecx, esi
push ebx
push dword [esp + 0x1c]
push edi
call fcn.004a3930
test eax, eax
jne 0x454041
xor ebx, ebx
jmp 0x454045
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov byte [ecx + edi], 0
mov ecx, esi
push dword [esp + 0x18]
push edi
call fcn.004a3490
mov ebx, dword [esp + 0x1c]
jmp 0x45404f
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0
push 1
mov ecx, esi
call fcn.00401550
cmp byte [esp + 0xe], 0
mov edi, eax
je 0x4541b8
cmp byte [esi + 0x17], 0
jne 0x454070
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 1
jne 0x454088
test byte [esi + 0x15], 8
je 0x454083
mov ecx, esi
call fcn.004013b0
lea eax, [esi + 0xc]
jmp 0x45408d
mov eax, 0x4ce2c0
mov eax, dword [eax]
mov edx, 0x4bf3b0
mov dword [esp + 0x24], eax
mov ecx, edi
lea eax, [esp + 0x24]
push eax
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4bf984
call fcn.0049ef20
mov eax, dword [esp + 0x28]
add esp, 0x18
cmp byte [eax + 0x17], 0
jne 0x4540c3
mov esi, dword [eax + 0xc]
jmp 0x4540c5
mov esi, eax
cmp byte [esi + 0x17], 1
jne 0x4540e6
test byte [esi + 0x15], 8
je 0x4540d8
mov ecx, esi
call fcn.004013b0
mov eax, dword [esp + 0x24]
add esi, 0xc
mov dword [esi], eax
jmp 0x4541b4
mov eax, dword [esp + 0x24]
mov esi, 0x4ce2c0
mov dword [esi], eax
jmp 0x4541b4
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x17]
test al, al
jne 0x454107
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x454130
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.004a2be0
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, 1
jne 0x4541e0
jmp 0x453e76
mov ebx, dword [esp + 0x18]
mov byte [ebx + edi], 0
cmp byte [ecx + 0x17], 0
jne 0x454143
mov esi, dword [ecx + 0xc]
jmp 0x454145
mov esi, ecx
cmp byte [esi + 0x17], 1
jne 0x45415f
test byte [esi + 0x15], 8
je 0x454158
mov ecx, esi
call fcn.004013b0
add esi, 0xc
mov dword [esi], ebx
jmp 0x4541b0
mov esi, 0x4ce2c0
mov dword [esi], ebx
jmp 0x4541b0
mov eax, dword [esp + 0x10]
mov byte [edi], 0
cmp byte [eax + 0x17], 0
jne 0x45417a
mov esi, dword [eax + 0xc]
jmp 0x45417c
mov esi, eax
cmp byte [esi + 0x17], 1
jne 0x454194
test byte [esi + 0x15], 8
je 0x45418f
mov ecx, esi
call fcn.004013b0
add esi, 0xc
jmp 0x454199
mov esi, 0x4ce2c0
cmp byte [esp + 0xf], 0
mov dword [esi], 0
jne 0x4541b0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x17], 0
jne 0x4541c1
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4541eb
cmp dword [0x4cc838], 0
je 0x4541eb
push 1
mov ecx, 0x4cc82c
call fcn.004056e0
test eax, eax
jne 0x4541ff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [esi + 0x15]
and al, 0x86
cmp byte [esp + 0xd], 0
mov byte [esi + 0x15], al
je 0x4541ff
or al, 1
mov byte [esi + 0x15], al
test ebx, ebx
jne 0x453e76
mov eax, dword [0x4c8024]
jmp 0x453d00
mov ecx, dword [esp + 0x14]
push 0x4b6ba9
push 0
push str.Out_of_memory.
call fcn.0043eaa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4