Function at 0x40b078
Capabilities:
Read file on windows

Disassembly:
push 0xa0
mov eax, 0x472fa2
call fcn.00459c76
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
mov dword [ebp - 0x80], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x40b17a
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call fcn.0040afdf
add esp, 0xc
test al, al
je 0x40b16f
cmp dword [ebp - 0x74], ebx
je 0x40b16f
mov edi, dword [ebp - 0x70]
cmp edi, ebx
je 0x40b16f
push 4
mov byte [ebp - 0x2d], bl
call fcn.004548d2
pop ecx
cmp eax, ebx
je 0x40b0fc
lea ecx, [ebp - 0x60]
mov dword [eax], ecx
jmp 0x40b0fe
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x2d]
push eax
mov eax, edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0040c579
push ebx
push ebx
mov byte [ebp - 4], 2
push dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x84], ebx
call fcn.0040be4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x70]
je 0x40b182
cmp dword [ebp - 0x54], ebx
je 0x40b15d
push dword [ebp - 0x54]
call fcn.00453664
pop ecx
push dword [ebp - 0x60]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00453664
pop ecx
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.00459cf9
ret
push 0x47a96c
lea ecx, [ebp - 0x2c]
call fcn.00409580
mov byte [ebp - 4], 3
mov esi, 0x47efac
jmp 0x40b1a6
push 3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ba0e
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ba34
cmp eax, 0xffffffff
jne 0x40b19a
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov esi, eax
jae 0x40b1c8
lea esi, [ebp - 0x28]
mov eax, esi
push 4
mov dword [ebp - 0x68], eax
call fcn.004548d2
pop ecx
cmp eax, ebx
je 0x40b1de
lea ecx, [ebp - 0x48]
mov dword [eax], ecx
jmp 0x40b1e0
xor eax, eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x80]
add esi, edi
push esi
push dword [ebp - 0x68]
lea eax, [ebp - 0x48]
push eax
call fcn.0040dbac
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x38]
sub esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x48]
call fcn.0040be4f
mov ecx, esi
call fcn.0040af44
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x50]
sub esi, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
call fcn.0040be4f
push eax
push esi
lea eax, [ebp - 0x60]
call fcn.0040be4f
push eax
call fcn.0040af92
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x40b298
cmp dword [ebp - 0x3c], ebx
je 0x40b24f
push dword [ebp - 0x3c]
call fcn.00453664
pop ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00453664
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040940a
cmp dword [ebp - 0x54], ebx
je 0x40b27a
push dword [ebp - 0x54]
call fcn.00453664
pop ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0x60]
call fcn.00453664
or dword [ebp - 4], 0xffffffff
pop ecx
push dword [ebp - 0x64]
jmp 0x40b174
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x54], eax
jbe 0x40b2a8
call fcn.00455b8a
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
cmp ebx, dword [ebp - 0x50]
jbe 0x40b2be
call fcn.00455b8a
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
push esi
lea ebx, [ebp - 0x94]
lea eax, [ebp - 0x7c]
call fcn.0040be6e
push dword [ebp - 0x68]
push dword [ebp - 0x8c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x48]
call fcn.0040d417
mov esi, dword [ebp - 0x38]
sub esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x48]
call fcn.0040be4f
mov ecx, esi
call fcn.0040af44
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
lea ecx, [edi + 4]
cmp eax, ecx
jae 0x40b357
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x40b31e
push dword [ebp - 0x3c]
call fcn.00453664
pop ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call fcn.00453664
pop ecx
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040940a
cmp dword [ebp - 0x54], esi
je 0x40b349
push dword [ebp - 0x54]
call fcn.00453664
pop ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
jmp 0x40b283
lea eax, [ebp - 0x48]
call fcn.0040be4f
mov ebx, dword [eax + edi]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
sub eax, esi
sub eax, edi
sub eax, 4
cmp eax, ebx
jae 0x40b3b9
xor edi, edi
cmp esi, edi
je 0x40b380
push esi
call fcn.00453664
pop ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.00453664
pop ecx
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040940a
cmp dword [ebp - 0x54], edi
je 0x40b3ab
push dword [ebp - 0x54]
call fcn.00453664
pop ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
jmp 0x40b283
mov dword [ebp - 0x68], esi
cmp esi, dword [ebp - 0x38]
jbe 0x40b3c9
call fcn.00455b8a
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
cmp esi, dword [ebp - 0x38]
jbe 0x40b3df
call fcn.00455b8a
mov eax, dword [ebp - 0x48]
push ebx
push edi
mov dword [ebp - 0x6c], eax
push 4
lea ebx, [ebp - 0x94]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x68], esi
call fcn.0040be6e
lea ebx, [ebp - 0x8c]
call fcn.0040be6e
lea ebx, [ebp - 0xa4]
call fcn.0040be6e
push edi
mov esi, eax
push 4
lea ebx, [ebp - 0xac]
lea eax, [ebp - 0x6c]
call fcn.0040be6e
lea ebx, [ebp - 0x9c]
call fcn.0040be6e
push dword [esi + 4]
push dword [esi]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 0x80]
call fcn.0040d417
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x40b450
push dword [ebp - 0x3c]
call fcn.00453664
pop ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call fcn.00453664
pop ecx
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040940a
cmp dword [ebp - 0x54], esi
je 0x40b47b
push dword [ebp - 0x54]
call fcn.00453664
pop ecx
push dword [ebp - 0x60]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.00453664
or dword [ebp - 4], 0xffffffff
pop ecx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40b17c