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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a5c
mov eax, dword fs:[0]
push eax
sub esp, 0x77c
mov eax, dword [0x55e3f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x508]
call fcn.00464ae0
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x508]
call fcn.0046c980
lea ecx, [ebp - 0x400]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.00461dd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x73c], 0
mov dword [ebp - 0x740], 0
call fcn.004675c0
push eax
lea ecx, [ebp - 0x94]
call fcn.00461dd0
mov byte [ebp - 4], 2
call fcn.004675d0
mov ecx, eax
call fcn.00462fe0
movzx edx, al
test edx, edx
je 0x492d79
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004623c0
push 0
push 0x80
push 3
push 0
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004622b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x748], eax
cmp dword [ebp - 0x748], 0xffffffff
jne 0x492c9f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
push 0
mov ecx, dword [ebp - 0x748]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
jne 0x492cd1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
mov dword [ebp - 0x754], 0
mov edx, dword [ebp - 0x740]
push edx
call fcn.004f6e82
add esp, 4
mov dword [ebp - 0x768], eax
mov eax, dword [ebp - 0x768]
mov dword [ebp - 0x73c], eax
push 0
lea ecx, [ebp - 0x754]
push ecx
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x748]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x748]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x754]
cmp eax, dword [ebp - 0x740]
je 0x492d74
mov ecx, dword [ebp - 0x73c]
mov dword [ebp - 0x76c], ecx
mov edx, dword [ebp - 0x76c]
push edx
call fcn.004f6e8b
add esp, 4
mov dword [ebp - 0x73c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
jmp 0x492ffb
call fcn.004675d0
push eax
lea ecx, [ebp - 0x94]
call fcn.004623c0
mov dword [ebp - 0x744], 0
call fcn.004679c0
movzx eax, al
test eax, eax
je 0x492db0
call fcn.004675e0
mov dword [ebp - 0x744], eax
jmp 0x492e35
call fcn.004675f0
push eax
lea ecx, [ebp - 0x220]
call fcn.00461dd0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x220]
call fcn.004622b0
push eax
call fcn.00470420
add esp, 8
mov dword [ebp - 0x750], eax
mov ecx, dword [ebp - 0x750]
push ecx
lea ecx, [ebp - 0x94]
call fcn.004622b0
push eax
call fcn.0047ca50
add esp, 8
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x750], 0
je 0x492e26
mov edx, dword [ebp - 0x750]
mov dword [ebp - 0x770], edx
mov eax, dword [ebp - 0x770]
push eax
call fcn.004f6e8b
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00461fb0
cmp dword [ebp - 0x744], 0
jne 0x492e52
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
mov dword [ebp - 0x758], 0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00461dd0
mov byte [ebp - 4], 4
push 0x529b48
push 0x529994
lea ecx, [ebp - 0x118]
call fcn.004633c0
lea edx, [ebp - 0x738]
push edx
lea eax, [ebp - 0x758]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004622b0
push eax
mov ecx, dword [ebp - 0x744]
push ecx
call fcn.0047bd40
add esp, 0x14
test eax, eax
je 0x492ed9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00461fb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
mov edx, dword [ebp - 0x50c]
mov dword [ebp - 0x740], edx
cmp dword [ebp - 0x740], 0
jne 0x492f11
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00461fb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
mov eax, dword [ebp - 0x740]
push eax
call fcn.004f6e82
add esp, 4
mov dword [ebp - 0x774], eax
mov ecx, dword [ebp - 0x774]
mov dword [ebp - 0x73c], ecx
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x744]
push edx
call fcn.0047d2d0
add esp, 0x10
mov dword [ebp - 0x75c], eax
cmp dword [ebp - 0x75c], 0
je 0x492fd1
cmp dword [ebp - 0x75c], 0x600
je 0x492fd1
mov eax, dword [ebp - 0x73c]
mov dword [ebp - 0x778], eax
mov ecx, dword [ebp - 0x778]
push ecx
call fcn.004f6e8b
add esp, 4
mov dword [ebp - 0x73c], 0
call fcn.004679c0
movzx edx, al
test edx, edx
jne 0x492fb1
mov eax, dword [ebp - 0x744]
push eax
call fcn.0047b960
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00461fb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
jmp 0x493012
call fcn.004679c0
movzx ecx, al
test ecx, ecx
jne 0x492fec
mov edx, dword [ebp - 0x744]
push edx
call fcn.0047b960
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00461fb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00461fb0
xor eax, eax
jne 0x492c1a
cmp dword [ebp - 0x73c], 0
jne 0x493110
push 0
push 0x80
push 3
push 0
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.004622b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0xffffffff
jne 0x493057
jmp 0x493110
push 0
mov ecx, dword [ebp - 0x74c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
jne 0x49307a
jmp 0x493110
mov dword [ebp - 0x760], 0
mov edx, dword [ebp - 0x740]
push edx
call fcn.004f6e82
add esp, 4
mov dword [ebp - 0x77c], eax
mov eax, dword [ebp - 0x77c]
mov dword [ebp - 0x73c], eax
push 0
lea ecx, [ebp - 0x760]
push ecx
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x74c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x74c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x760]
cmp eax, dword [ebp - 0x740]
je 0x493109
mov ecx, dword [ebp - 0x73c]
mov dword [ebp - 0x780], ecx
mov edx, dword [ebp - 0x780]
push edx
call fcn.004f6e8b
add esp, 4
mov dword [ebp - 0x73c], 0
jmp 0x493110
mov dword [ebp - 0x764], 0
cmp dword [ebp - 0x73c], 0
je 0x493164
mov eax, dword [ebp - 0x740]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
call fcn.00492a90
add esp, 8
mov dword [ebp - 0x764], eax
mov edx, dword [ebp - 0x73c]
mov dword [ebp - 0x784], edx
mov eax, dword [ebp - 0x784]
push eax
call fcn.004f6e8b
add esp, 4
mov dword [ebp - 0x73c], 0
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x788], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x19c]
call fcn.00461fb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x508]
call fcn.00465180
mov eax, dword [ebp - 0x788]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f7a16
mov esp, ebp
pop ebp
ret