Function at 0x401dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492cc3
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4aeea0]
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, edx
mov edi, ecx
mov dword [ebp - 0x134], edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipe46A9CBD7_15C4_44D7_A660_DD80F2816DB6
mov dword [ebp - 0x138], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x130], esi
cmp esi, 0xffffffff
jne 0x401e41
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
jmp 0x4020b3
push ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x14], 0
call fcn.00402100
sub esp, 8
lea ecx, [ebp - 0x128]
call fcn.00402a00
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x401f24
mov edx, dword [ebx]
lea ecx, [ebp - 0x118]
call fcn.00404b10
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x12c], 1
cmp eax, 1
jbe 0x401f24
mov edi, 0x18
mov esi, dword [ebx]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x118]
add esi, edi
call fcn.00404b10
mov edx, esi
mov ecx, eax
call fcn.00404b10
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov esi, dword [ebp - 0x12c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x18
mov dword [ebp - 0x12c], esi
cmp esi, eax
jb 0x401ed3
mov edi, dword [ebp - 0x134]
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x128]
call fcn.00402b30
push 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401f7c
mov eax, dword [ebp - 0x1c]
add eax, eax
cmp dword [ebp - 0x14], eax
je 0x401f7c
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
jmp 0x402046
push 0xf
mov edx, esi
lea ecx, [ebp - 0x74]
call fcn.0040e110
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x60], 0x10
lea ecx, [ebp - 0x74]
cmovae ecx, dword [ebp - 0x74]
xor eax, eax
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x64]
shr eax, 1
push eax
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
call fcn.00403710
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jae 0x401ffa
mov eax, dword [ebp - 0x4c]
inc eax
je 0x402006
add eax, eax
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
call fcn.0045aac0
mov ecx, dword [ebp - 0x48]
add esp, 0xc
jmp 0x402006
mov eax, dword [ebp - 0x5c]
mov dword [edi], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x10], eax
xor eax, eax
cmp dword [ebp - 0x60], 0x10
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x402034
push dword [ebp - 0x74]
call fcn.0045b2a0
add esp, 4
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp dword [ebp - 0x18], 8
jb 0x402057
push dword [ebp - 0x2c]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x30], 8
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
jb 0x402078
push dword [ebp - 0x44]
call fcn.0045b2a0
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00402ab0
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.00442158
add esp, 4
mov eax, edi
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.0045a8cf
mov esp, ebp
pop ebp
ret