Function at 0x42c040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47828b
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x49e044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x32c], edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x354], ecx
mov dword [ebp - 0x35c], esi
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0042d0f0
mov ecx, dword [ebp - 0x354]
mov ebx, dword [ebp - 0x1c]
lea edx, [esi + ecx]
mov dword [ebp - 0x360], edx
cmp edx, ebx
jbe 0x42c6ef
mov eax, dword [edi + 0x24]
sub esi, ebx
add esi, ecx
mov dword [ebp - 0x334], esi
cmp esi, eax
jb 0x42c107
mov esi, eax
mov dword [ebp - 0x334], eax
push 0x98
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.004549a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00413c20
mov edx, str.reading
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.0041a0d0
push esi
mov ecx, eax
call fcn.00413ee0
mov edx, str._bytes_of_received_message
mov ecx, eax
call fcn.0041a0d0
lea eax, [edi + 0x58]
push eax
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x338]
push dword [edi + 0x8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 0x9c
mov dword [edi], eax
test esi, esi
jne 0x42c4e2
cmp eax, 0x3e5
je 0x42c22c
push 0xc
mov dword [ebp - 0x350], esi
lea ecx, [ebp - 0x350]
push str.reading_pipe
mov dword [ebp - 0x340], esi
mov dword [ebp - 0x33c], 0xf
mov byte [ebp - 0x350], 0
call fcn.00417240
push edi
mov edi, dword [ebp - 0x32c]
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x350]
mov byte [ebp - 4], 2
push eax
push 9
mov ecx, edi
call fcn.0042d2f0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x33c]
cmp edx, 0x10
jb 0x42c632
mov ecx, dword [ebp - 0x350]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c21d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c7db
push edx
push ecx
call fcn.00452f08
add esp, 8
jmp 0x42c632
mov esi, dword [ebp - 0x358]
xor edi, edi
cmp dword [esi], 0x103
jne 0x42c31e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
cmp edi, 0x2710
jb 0x42c234
mov esi, dword [ebp - 0x334]
push 0x98
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.004549a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00413c20
mov edx, str.waiting_after_reading
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1f8]
call fcn.0041a0d0
push esi
mov ecx, eax
call fcn.00413ee0
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00416ab0
mov edi, dword [ebp - 0x32c]
mov ecx, edi
mov byte [ebp - 4], 7
lea eax, [edi + 0x9c]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x350]
push eax
push 0xa
call fcn.0042d2f0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x33c]
cmp edx, 0x10
jb 0x42c30e
mov ecx, dword [ebp - 0x350]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c7db
push edx
push ecx
call fcn.00452f08
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00409c70
jmp 0x42c632
push 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x32c]
push esi
push dword [eax + 0x8c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0x98
push 0
test eax, eax
je 0x42c410
lea eax, [ebp - 0x328]
push eax
call fcn.004549a0
add esp, 8
lea ecx, [ebp - 0x328]
call fcn.00413c20
mov edx, str.overlapped_read
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x328]
call fcn.0041a0d0
push dword [ebp - 0x14]
mov ecx, eax
call fcn.00413ee0
mov edx, str.:_offset
mov ecx, eax
call fcn.0041a0d0
push ebx
mov ecx, eax
call fcn.00413ee0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x14]
sub eax, ebx
mov dword [ebp - 0x358], ecx
cmp ecx, eax
ja 0x42c3d6
lea eax, [ebx + ecx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmp edx, 0x10
jb 0x42c3b7
mov eax, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x338]
lea esi, [ebx + eax]
push esi
call fcn.00454b00
mov eax, dword [ebp - 0x358]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x42c3f3
push ecx
push dword [ebp - 0x338]
mov byte [ebp - 0x364], 0
push dword [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041b130
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 1
call fcn.00409c70
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x334]
jmp 0x42c4d1
lea eax, [ebp - 0x160]
push eax
call fcn.004549a0
add esp, 8
lea ecx, [ebp - 0x160]
call fcn.00413c20
mov edx, str.overlapped_result_when_reading
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x160]
call fcn.0041a0d0
mov esi, dword [ebp - 0x334]
mov ecx, eax
push esi
call fcn.00413ee0
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00416ab0
mov ecx, dword [ebp - 0x32c]
mov byte [ebp - 4], 5
lea eax, [ecx + 0x9c]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x350]
push eax
push 0xb
call fcn.0042d2f0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x33c]
cmp edx, 0x10
jb 0x42c4c2
mov ecx, dword [ebp - 0x350]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c4b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c7db
push edx
push ecx
call fcn.00452f08
add esp, 8
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.00409c70
cmp edi, 0x2710
jb 0x42c62c
jmp 0x42c259
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x334]
cmp edi, esi
jae 0x42c5d7
push 0x98
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.004549a0
add esp, 8
lea ecx, [ebp - 0x290]
call fcn.00413c20
mov edx, str.read
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x290]
call fcn.0041a0d0
push dword [ebp - 0x14]
mov ecx, eax
call fcn.00413ee0
mov edx, str._requested
mov ecx, eax
call fcn.0041a0d0
push esi
mov ecx, eax
call fcn.00413ee0
mov edx, str._reading_pipe
mov ecx, eax
call fcn.0041a0d0
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00416ab0
mov edi, dword [ebp - 0x32c]
mov ecx, edi
mov byte [ebp - 4], 9
lea eax, [edi + 0x9c]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x350]
push eax
push 0xc
call fcn.0042d2f0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x33c]
cmp edx, 0x10
jb 0x42c5ca
mov ecx, dword [ebp - 0x350]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c5c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c7db
push edx
push ecx
call fcn.00452f08
add esp, 8
lea ecx, [ebp - 0x290]
call fcn.00409c70
jmp 0x42c632
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, ebx
cmp edi, eax
ja 0x42c60c
lea eax, [edi + ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmp ecx, 0x10
jb 0x42c5f3
mov eax, dword [ebp - 0x2c]
push edi
push dword [ebp - 0x338]
lea esi, [eax + ebx]
push esi
call fcn.00454b00
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x42c629
push edi
push dword [ebp - 0x338]
mov byte [ebp - 0x368], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x368]
push edi
call fcn.0041b130
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x32c]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.00409c70
cmp dword [ebp - 0x330], 0
mov esi, dword [ebp - 0x35c]
mov edx, dword [ebp - 0x360]
jne 0x42c661
mov ecx, dword [ebp - 0x354]
jmp 0x42c0e6
cmp edx, ebx
jbe 0x42c6ef
push 0x98
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.004549a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00413c20
mov edx, str.expected
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8]
call fcn.0041a0d0
mov ecx, dword [ebp - 0x354]
push ecx
mov ecx, eax
call fcn.00413ee0
mov edx, str._actual
mov ecx, eax
call fcn.0041a0d0
push ebx
mov ecx, eax
call fcn.00413ee0
mov edx, str._reading_pipe
mov ecx, eax
call fcn.0041a0d0
cmp dword [ebp - 0x330], 0
jne 0x42c6df
mov dword [ebp - 0x330], 3
lea ecx, [ebp - 0xc8]
call fcn.00409c70
jmp 0x42c782
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 0xf
cmp ebx, esi
jb 0x42c7d6
sub ebx, esi
cmp ebx, 0xffffffff
jb 0x42c71f
or ebx, 0xffffffff
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
jb 0x42c72b
mov eax, dword [ebp - 0x2c]
push ebx
add eax, esi
lea ecx, [ebp - 0x350]
push eax
call fcn.00417240
mov ecx, dword [ebp - 0x36c]
lea eax, [ebp - 0x350]
push eax
call fcn.004195d0
mov edx, dword [ebp - 0x33c]
cmp edx, 0x10
jb 0x42c782
mov ecx, dword [ebp - 0x350]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c778
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c7db
push edx
push ecx
call fcn.00452f08
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x42c7b2
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42c7a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c7db
push edx
push ecx
call fcn.00452f08
add esp, 8
mov eax, dword [ebp - 0x330]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004528ff
mov esp, ebp
pop ebp
ret 0x10
call fcn.00419660
call fcn.0045e090
int3