Function at 0x423120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf606
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.0047bc80
mov eax, dword [0x4fe080]
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 ebx, ecx
mov dword [ebp - 0x104c], ebx
cmp byte [ebx + 0x54], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1050], 0
jne 0x423184
push 0x4d69a8
mov ecx, esi
call fcn.0040f510
jmp 0x4233d7
cmp byte [ebx + 0x55], 0
push 0xffffffffffffffff
jne 0x4233b8
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0x1c]
push str.pid:
push 0x509f80
call fcn.00422b40
add esp, 8
mov ecx, eax
call fcn.0041b430
push eax
call fcn.004144a0
add esp, 4
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x102c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4233aa
lea esp, [esp]
mov eax, dword [ebp - 0x102c]
test eax, eax
je 0x4233a4
xor ecx, ecx
mov edx, 0xf
mov dword [ebp - 0x1014], edx
mov dword [ebp - 0x1018], ecx
mov byte [ebp - 0x1028], cl
xor edi, edi
mov dword [ebp - 4], ecx
test eax, eax
je 0x4232e9
mov bl, byte [ebp + edi - 0x1010]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4233f7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4233f7
cmp edx, esi
jae 0x423258
push ecx
push esi
lea ecx, [ebp - 0x1028]
call fcn.00401e37
jmp 0x423275
test esi, esi
jne 0x423283
cmp edx, 0x10
mov dword [ebp - 0x1018], esi
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1018]
test esi, esi
mov edx, dword [ebp - 0x1014]
setne al
test al, al
je 0x4232c7
cmp edx, 0x10
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
mov byte [eax + ecx], bl
lea eax, [ebp - 0x1028]
cmp dword [ebp - 0x1014], 0x10
mov dword [ebp - 0x1018], esi
cmovae eax, dword [ebp - 0x1028]
mov byte [eax + esi], 0
mov edx, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x1018]
inc edi
cmp edi, dword [ebp - 0x102c]
jb 0x423224
mov ebx, dword [ebp - 0x104c]
cmp edx, 0x10
jb 0x4232e9
mov esi, dword [ebp - 0x1028]
mov eax, esi
jmp 0x4232f5
mov esi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1028]
push dword [ebp - 0x1048]
add eax, ecx
mov dword [ebp - 0x1030], 7
cmp edx, 0x10
mov dword [ebp - 0x1034], 0
lea ecx, [ebp - 0x1028]
cmovae ecx, esi
xor edx, edx
push eax
push ecx
lea ecx, [ebp - 0x1044]
mov word [ebp - 0x1044], dx
call fcn.00413610
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1044]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x24]
call fcn.004112e0
cmp dword [ebp - 0x1030], 8
jb 0x423361
push dword [ebp - 0x1044]
call fcn.0047a557
add esp, 4
cmp dword [ebp - 0x1014], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x42337f
push dword [ebp - 0x1028]
call fcn.0047a557
add esp, 4
push 0
lea eax, [ebp - 0x102c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4231f0
mov esi, dword [ebp - 0x1048]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebx + 0x55], 1
push 0xffffffffffffffff
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebx + 0x24]
push eax
call fcn.004114e0
mov eax, esi
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.0047b06c
mov esp, ebp
pop ebp
ret 4
push 0x4ee374
call fcn.004782a5
int3