Function at 0x40bb9e
Capabilities:
Read file on windows

Disassembly:
push 0xb8
mov eax, 0x478a4d
call fcn.0045fd3a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x84], ebx
test byte [0x49aa60], 1
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], esi
jne 0x40bbe7
or dword [0x49aa60], 1
mov dword [ebp - 4], ebx
call fcn.0040e7cc
push 0x47b06a
call fcn.0045f64c
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x49739d], bl
je 0x40bc00
push 0x49aa48
mov byte [0x49739d], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xb4], ebx
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0xb4], 0xffffffff
je 0x40be6f
test byte [ebp - 0xb4], 0x10
jne 0x40be6f
cmp dword [ebp - 0x98], ebx
ja 0x40be6f
cmp dword [ebp - 0x94], 0xa00000
ja 0x40be6f
push esi
lea esi, [ebp - 0x30]
call fcn.00402cbb
lea eax, [ebp - 0x90]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00402d24
mov esi, eax
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x30]
call fcn.00402d43
mov edi, eax
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x30]
call fcn.00402d24
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0xc4]
push fcn.0045ee48
push eax
call fcn.00403f59
mov eax, 0x49aa48
add esp, 0x20
push eax
mov dword [ebp - 0xb8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 2
call fcn.0040e925
mov eax, dword [0x49aa2c]
mov dword [ebp - 0x84], eax
mov eax, dword [0x49aa14]
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x90]
mov dword [ebp - 0x88], eax
call fcn.0041b3a5
test al, al
jne 0x40bd82
call fcn.0040f0bc
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x24
mov dword [ebp - 0x74], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00402c8b
push 8
pop ecx
lea edi, [ebp - 0xa0]
lea esi, [ebp - 0x78]
xor eax, eax
mov byte [ebp - 4], 3
repe cmpsb byte [esi], byte es:[edi]
je 0x40bd41
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40bd77
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.00402c8b
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00403021
push 0x49aa48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.0040144b
jmp 0x40be7c
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00403021
lea esi, [ebp - 0x4c]
call fcn.00402c56
mov eax, dword [ebp - 0xa0]
push ebx
push ebx
push 3
push ebx
push 7
push connect
push dword [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x40be50
cmp esi, 0xffffffff
je 0x40be50
push dword [ebp - 0x94]
call fcn.0045f123
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x94]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40be49
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x80], eax
jne 0x40be49
push eax
push edi
lea esi, [ebp - 0x70]
call fcn.0040e440
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00402f6c
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403021
lea eax, [ebp - 0x30]
push eax
call fcn.0040e82d
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x50]
push 0xffffffffffffffff
mov dword [eax + 4], ecx
push ebx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [eax + 8]
call fcn.00402f6c
push edi
call fcn.0045f046
pop ecx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
call fcn.00402c8b
lea eax, [ebp - 0x84]
call fcn.00404434
lea ecx, [ebp - 0x4c]
jmp 0x40bd54
mov ecx, dword [ebp - 0x7c]
push 0x47f8f6
call fcn.00402c69
mov eax, dword [ebp - 0x7c]
call fcn.0045fdbd
ret 4