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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d4a3
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
sub eax, 0x938
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0
jne 0x45b3fa
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 8]
test eax, eax
je 0x45b3a1
push 0
push 0x80
push 3
push 0
push 1
push bind
mov ecx, dword [ebp - 0x3c]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.004d7680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00453330
test eax, eax
je 0x45b298
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
call fcn.0049c1a0
add esp, 0x10
jmp 0x45b387
push 0
lea ecx, [ebp - 0x14]
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x8000
jae 0x45b2bd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
jmp 0x45b2c4
mov dword [ebp - 0x40], 0x8000
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
call fcn.0050721e
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401410
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x20]
call fcn.00438030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0049b080
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0053f10f
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.004664a0
lea eax, [eax + eax + 2]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 4]
push eax
call fcn.0050721e
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004dfdf0
push eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
call fcn.0053fa60
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044fc20
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
mov word [edx + 8], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403d50
jmp 0x45b3fa
mov ecx, dword [ebp - 0x10]
add ecx, 0x84c
call fcn.004664a0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x45b3fa
mov eax, dword [ebp - 0x28]
lea ecx, [eax + eax + 2]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
call fcn.0050721e
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x84c
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], 0
je 0x45b40b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
mov dword [eax], edx
cmp dword [ebp + 8], 0
je 0x45b432
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x45b432
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0053fa60
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8