Function at 0x41d540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bcf0
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4c6018]
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
xor ebx, ebx
mov dword [ebp - 4], 1
lea edi, [ebx + 9]
mov eax, str..pipe_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402610
push 7
mov eax, 0x4bb750
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00409fe0
push 0xb
mov eax, str.ABC_Service
mov ecx, esi
call fcn.00409fe0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x41d5c4
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x84], eax
cmp eax, 0xffffffff
jne 0x41d693
cmp dword [ebp + 0x40], ebx
je 0x41d646
cmp dword [ebp - 0x18], esi
jb 0x41d601
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
cmp dword [ebp + 0x1c], esi
jb 0x41d621
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41d63c
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
jmp 0x41d9b4
cmp dword [ebp - 0x18], esi
jb 0x41d658
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x1c], esi
jb 0x41d678
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41d9b2
mov edx, dword [ebp + 0x24]
push edx
jmp 0x41d9a9
mov edi, 0xb
mov eax, str.ABC_Service
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00402610
push ebx
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 3
call fcn.0040a380
push 2
mov eax, 0x4bba04
mov ecx, esi
call fcn.00409fe0
push ebx
lea ecx, [ebp + 0x24]
push ecx
or eax, 0xffffffff
call fcn.0040a380
mov eax, dword [ebp - 0x48]
mov esi, 0x10
mov dword [ebp - 0x8c], ebx
cmp dword [ebp - 0x34], esi
jae 0x41d6f4
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x84]
push ebx
lea edx, [ebp - 0x8c]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x8c]
cmp edx, dword [ebp - 0x38]
jne 0x41d94a
cmp dword [ebp + 0x44], ebx
je 0x41d90f
push 1
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea edx, [ebp - 0xac]
mov edi, 7
mov eax, str.Global_
lea esi, [ebp - 0x64]
mov dword [ebp - 0x98], 0xc
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.00402610
push 0xb
mov eax, str.ABC_Service
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00409fe0
push ebx
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
call fcn.0040a380
push edi
mov eax, 0x4bb750
mov ecx, esi
call fcn.00409fe0
push 3
mov eax, 0x4bb9f4
mov ecx, esi
call fcn.00409fe0
mov eax, str.Global_
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.00402610
push 0xb
mov eax, str.ABC_Service
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00409fe0
push ebx
lea ecx, [ebp + 8]
push ecx
or eax, 0xffffffff
call fcn.0040a380
push edi
mov eax, 0x4bb750
mov ecx, esi
call fcn.00409fe0
push 4
mov eax, str._Yes
mov ecx, esi
call fcn.00409fe0
mov eax, dword [ebp - 0x64]
mov edi, 0x10
cmp dword [ebp - 0x50], edi
jae 0x41d832
lea eax, [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
push ebx
push ebx
lea edx, [ebp - 0x98]
push edx
call esi
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x41d855
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
lea eax, [ebp - 0x98]
push eax
call esi
mov ecx, dword [ebp + 0x48]
push ecx
push ebx
lea edx, [ebp - 0x88]
push edx
push 2
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x88]
push eax
call edi
mov ecx, dword [ebp - 0x84]
push ecx
call edi
mov eax, esi
sub eax, ebx
lea ecx, [ebp - 0x80]
je 0x41d8a6
dec eax
je 0x41d8d8
sub eax, 0x101
call fcn.00401fc0
lea ecx, [ebp - 0x64]
call fcn.00401fc0
lea ecx, [ebp - 0x48]
call fcn.00401fc0
lea ecx, [ebp - 0x2c]
call fcn.00401fc0
lea ecx, [ebp + 8]
call fcn.00401fc0
lea ecx, [ebp + 0x24]
call fcn.00401fc0
jmp 0x41d9b2
call fcn.00401fc0
lea ecx, [ebp - 0x64]
call fcn.00401fc0
lea ecx, [ebp - 0x48]
call fcn.00401fc0
lea ecx, [ebp - 0x2c]
call fcn.00401fc0
lea ecx, [ebp + 8]
call fcn.00401fc0
lea ecx, [ebp + 0x24]
call fcn.00401fc0
mov eax, 1
jmp 0x41d9b4
cmp dword [ebp - 0x34], esi
jb 0x41d921
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x41d606
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x41d606
cmp dword [ebp - 0x34], esi
jb 0x41d95c
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x41d97c
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x1c], esi
jb 0x41d997
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x41d9b2
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
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.00449013
mov esp, ebp
pop ebp
ret 0x44