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

Disassembly:
push 0x8c
mov eax, 0x50d128
call fcn.0049e056
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 4], 2
mov byte [ebp - 0x65], bl
jae 0x495ffa
lea eax, [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x78], edi
cmp edi, 0xffffffff
je 0x4962d7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 2
jae 0x496066
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x40]
call fcn.0040184d
xor al, al
lea esp, [ebp - 0xa8]
call fcn.0049e0d9
ret 0x54
lea eax, [esi + 4]
push eax
call fcn.00499a0f
pop ecx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x49602e
lea eax, [esi + 4]
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.0049d740
add esp, 0xc
push ebx
lea eax, [ebp - 0x74]
push eax
push esi
mov esi, dword [ebp - 0x6c]
push esi
push edi
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4960d6
push esi
call fcn.0049ac10
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x65], bl
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x40]
call fcn.0040184d
mov al, byte [ebp - 0x65]
jmp 0x496058
push 2
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x70], ebx
call fcn.0049d7c0
mov eax, 0xfeff
add esp, 0xc
cmp ax, word [ebp - 0x70]
jne 0x496190
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401685
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00409c01
mov esi, eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409c21
mov edi, eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409c01
push fcn.0049c0dd
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x98]
push eax
call fcn.00479477
add esp, 0x20
push ebx
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042500f
cmp eax, 0xffffffff
jne 0x49617c
push ebx
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042500f
cmp eax, 0xffffffff
je 0x496180
mov byte [ebp - 0x65], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040184d
jmp 0x4962c5
cmp dword [ebp + 0x3c], 8
mov edi, dword [ebp + 0x28]
jae 0x49619c
lea edi, [ebp + 0x28]
cmp edi, ebx
je 0x4961af
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4961b3
xor eax, eax
jmp 0x4961c9
lea esi, [eax + eax]
mov eax, esi
call fcn.004a0570
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c20c
push eax
lea ecx, [ebp - 0x64]
call fcn.00401644
cmp dword [ebp + 0x58], 8
mov edi, dword [ebp + 0x44]
mov byte [ebp - 4], 4
jae 0x4961e2
lea edi, [ebp + 0x44]
cmp edi, ebx
je 0x4961f5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4961f9
xor eax, eax
jmp 0x49620f
lea esi, [eax + eax]
mov eax, esi
call fcn.004a0570
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040c20c
push eax
lea ecx, [ebp - 0x48]
call fcn.00401644
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401644
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00411420
mov esi, eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004179b6
mov edi, eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411420
push fcn.0049c0dd
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x80]
push eax
call fcn.004179e7
add esp, 0x20
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00424fa9
cmp eax, 0xffffffff
jne 0x4962a0
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00424fa9
cmp eax, 0xffffffff
je 0x4962a4
mov byte [ebp - 0x65], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017de
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004017de
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004017de
push dword [ebp - 0x6c]
call fcn.0049ac10
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x65]
mov byte [ebp - 0x65], al
jmp 0x4960b0