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

Disassembly:
push 0x3d0
mov eax, 0x4f5c61
call fcn.00492158
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov esi, ebx
mov edi, ebx
call fcn.00447aad
push eax
lea ecx, [ebp - 0x94]
call fcn.00444f04
mov dword [ebp - 4], ebx
call fcn.00447ab9
mov ecx, eax
call fcn.00445727
test al, al
je 0x462d49
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x94]
call fcn.00445183
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.00402bc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x462cf3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044502b
jmp 0x462eda
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x462cdf
push edi
mov dword [ebp - 0x3d8], ebx
call fcn.004915be
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], edi
je 0x462ec7
push esi
call fcn.004915c7
pop ecx
mov esi, ebx
jmp 0x462cdf
call fcn.00447ab9
push eax
lea ecx, [ebp - 0x94]
call fcn.00445166
call fcn.00447dd7
test al, al
je 0x462d70
call fcn.00447abf
mov dword [ebp - 0x3d0], eax
jmp 0x462ddc
call fcn.00447ac5
push eax
lea ecx, [ebp - 0x19c]
call fcn.00444f04
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00402bc0
push eax
call fcn.0044c503
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x3d8], eax
call fcn.00402bc0
push eax
call fcn.00457c05
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d8]
pop ecx
pop ecx
test eax, eax
je 0x462dc8
push eax
call fcn.004915c7
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0044502b
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x462cdf
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call fcn.00444f29
push 0x4ffdc8
push 0x51e990
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004458f4
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00402bc0
push eax
push dword [ebp - 0x3d0]
call fcn.004575dc
add esp, 0x14
test eax, eax
je 0x462e54
lea ecx, [ebp - 0x118]
call fcn.0044502b
jmp 0x462cdf
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x462e44
push edi
call fcn.004915be
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.0045803f
add esp, 0x14
test eax, eax
je 0x462ea7
cmp eax, 0x600
je 0x462ea7
push esi
call fcn.004915c7
pop ecx
mov esi, ebx
call fcn.00447dd7
test al, al
jne 0x462e44
push dword [ebp - 0x3d0]
call fcn.004573bb
pop ecx
jmp 0x462e44
call fcn.00447dd7
test al, al
jne 0x462ebc
push dword [ebp - 0x3d0]
call fcn.004573bb
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0044502b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044502b
test esi, esi
jne 0x462f55
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x462f51
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x462f51
push edi
mov dword [ebp - 0x3d0], ebx
call fcn.004915be
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x462f51
push esi
call fcn.004915c7
pop ecx
mov esi, ebx
test esi, esi
je 0x462f69
push edi
push esi
call fcn.00462bf0
push 1
push esi
mov ebx, eax
call fcn.004915b0
add esp, 0x10
mov eax, ebx
call fcn.00492113
ret