Function at 0x40b15d
Capabilities:
Read file on windows

Disassembly:
push 0x104
mov eax, 0x46ff5a
call fcn.0044f666
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], esi
and dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40b1a9
call fcn.0040c7d4
jmp 0x40b1b3
mov esi, eax
xor eax, eax
mov dword [ebp - 0x108], esi
test eax, eax
js 0x40b3ea
push 0x400000
call fcn.00426214
and dword [ebp - 0x104], 0
mov edi, eax
lea eax, [ebp - 0x78]
push eax
call fcn.00453910
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x104]
push eax
push 0x400000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b200
call fcn.0040c7d4
jmp 0x40b202
xor eax, eax
test eax, eax
js 0x40b3e3
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x40b243
mov ecx, dword [0x49d884]
test ecx, ecx
je 0x40b227
push ecx
call ebx
mov eax, dword [ebp - 0x104]
push eax
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00453874
mov eax, dword [0x49d884]
add esp, 0xc
test eax, eax
je 0x40b1df
push eax
call ebx
jmp 0x40b1df
push 0x48a9dc
lea ecx, [ebp - 0x100]
call fcn.0040651c
mov byte [ebp - 4], 1
lea edi, [ebp - 0x1f]
xor eax, eax
mov byte [ebp - 0x20], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004537dd
mov eax, dword [0x49d884]
pop ecx
pop ecx
test eax, eax
je 0x40b281
push eax
call ebx
movzx eax, byte [ebp - 0x11]
mov edi, str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.00406873
add esp, 0x48
lea ecx, [ebp - 0x100]
push dword [ebp - 0x10c]
call fcn.00406715
lea ecx, [ebp - 0x100]
call fcn.00406f35
lea eax, [ebp - 0x78]
push eax
call fcn.00453910
pop ecx
push dword [ebp - 0x100]
lea ecx, [ebp - 0xfc]
call fcn.0040c1f5
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x100]
push dword [ecx - 0xc]
push dword [eax]
lea eax, [ebp - 0x78]
push eax
call fcn.00453874
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 1
add esp, 0xc
cmp dword [ebp - 0xfc], eax
je 0x40b356
push dword [ebp - 0xfc]
call fcn.0042eac7
pop ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004537dd
mov eax, dword [0x49d884]
pop ecx
pop ecx
test eax, eax
je 0x40b371
push eax
call ebx
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x110]
call fcn.00406873
mov ecx, dword [ebp - 0x100]
add esp, 0x48
lea ecx, [ecx - 0x10]
call fcn.0040630c
xor ebx, ebx
inc ebx
jmp 0x40b3ec
push edi
call fcn.0042620f
pop ecx
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40b3fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.0044f621
ret