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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0b26
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4e20c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x1c], eax
mov eax, edi
jbe 0x44c1ad
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x44c358
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6664a8]
cmp eax, dword [ecx + 4]
jle 0x44c234
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], 0xffffffff
jne 0x44c234
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 0
push 0x4a2f10
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6664a8
call fcn.0046eab3
add esp, 8
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
push str.open_file_error_msg
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
call fcn.0041c9d0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x44c277
mov edx, dword [eax]
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 4
mov ecx, edi
cmp dword [edi + 0x14], 7
jbe 0x44c288
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, esp
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0xc0000000
push esi
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x50]
push edx
mov dword [eax], 1
call fcn.0043bd80
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x120]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0x1c
lea ecx, [ebp - 0x120]
push 0x4e2b9c
call fcn.004324d0
cmp dword [ebp - 0x3c], 7
lea edx, [ebp - 0x50]
push dword [ebp - 0x40]
cmova edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x18], 3
call fcn.0043cec0
lea eax, [ebp - 0x110]
push eax
call fcn.0043a020
mov esi, 3
add esp, 8
mov dword [ebp - 0x18], esi
and esi, 0xfffffffd
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.004325d0
and esi, 0xfffffffe
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00416650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00416aa0
xor al, al
jmp 0x44c6fc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], esi
cmp esi, 0xffffffff
jne 0x44c4fe
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6664a8]
cmp eax, dword [ecx + 4]
jle 0x44c3d1
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], esi
jne 0x44c3d1
mov dword [ebp - 4], 6
mov dword [ebp - 0x1c], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 6
push 0x4a2f10
call fcn.0046efd1
mov dword [ebp - 4], esi
push 0x6664a8
call fcn.0046eab3
add esp, 8
push 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.get_file_size_error_msg
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041c9d0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x44c414
mov edx, dword [eax]
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0xa
mov ecx, edi
cmp dword [edi + 0x14], 7
jbe 0x44c425
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, esp
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0xc0000000
push esi
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x68]
push edx
mov dword [eax], 1
call fcn.0043bd80
mov dword [ebp - 0x18], 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x120]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0x1c
lea ecx, [ebp - 0x120]
push 0x4e2b9c
call fcn.004324d0
cmp dword [ebp - 0x54], 7
lea edx, [ebp - 0x68]
push dword [ebp - 0x58]
cmova edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x18], 0xc
call fcn.0043cec0
lea eax, [ebp - 0x110]
push eax
call fcn.0043a020
mov esi, 0xc
add esp, 8
mov dword [ebp - 0x18], esi
and esi, 0xfffffff7
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x120]
call fcn.004325d0
and esi, 0xfffffffb
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x68]
call fcn.00416650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416aa0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x44c6fc
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0x1d], 0
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x38], edx
sub edx, eax
cmp esi, edx
jb 0x44c543
jbe 0x44c548
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp esi, eax
jbe 0x44c52d
lea eax, [ebp - 0x1d]
push eax
push esi
call fcn.0044e420
mov ecx, dword [ebp - 0x24]
jmp 0x44c548
sub esi, edx
push esi
push 0
push dword [ebp - 0x38]
call fcn.004709e0
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add eax, esi
mov dword [ecx + 4], eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax]
push dword [ecx]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x28]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x44c6fa
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6664a8]
cmp eax, dword [ecx + 4]
jle 0x44c5d9
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], 0xffffffff
jne 0x44c5d9
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x1c], 0x6664b0
mov dword [0x6664d4], esi
mov byte [ebp - 4], 0xc
push 0x4a2f10
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6664a8
call fcn.0046eab3
add esp, 8
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.read_file_error_msg
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041c9d0
mov dword [ebp - 4], 0xf
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x44c61c
mov edx, dword [eax]
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0x10
mov ecx, edi
cmp dword [edi + 0x14], 7
jbe 0x44c62d
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, esp
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0xc0000000
push esi
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x68]
push edx
mov dword [eax], 1
call fcn.0043bd80
mov dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x120]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0x1c
lea ecx, [ebp - 0x120]
push 0x4e2b9c
call fcn.004324d0
cmp dword [ebp - 0x54], 7
lea edx, [ebp - 0x68]
push dword [ebp - 0x58]
cmova edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x18], 0x30
call fcn.0043cec0
lea eax, [ebp - 0x110]
push eax
call fcn.0043a020
mov esi, 0x30
add esp, 8
mov dword [ebp - 0x18], esi
and esi, 0xffffffdf
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x120]
call fcn.004325d0
and esi, 0xffffffef
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x68]
call fcn.00416650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416aa0
xor al, al
jmp 0x44c6fc
mov al, 1
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.0046ea75
mov esp, ebp
pop ebp
ret 0xc