Function at 0x41c070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef460
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x53e754]
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 ebx, dword [ebp + 8]
lea esi, [edi + 0xc8]
push esi
mov dword [ebp - 0x28], esi
call fcn.0048f018
add esp, 4
test eax, eax
je 0x41c0bf
push eax
call fcn.0048f502
add esp, 4
mov eax, ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push dword [edi + 4]
sub eax, 1
je 0x41c14e
call fcn.00421240
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00432fe0
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], 8
jb 0x41c0f5
mov ecx, dword [ecx]
mov eax, ebx
sub eax, 0
je 0x41c13c
sub eax, 1
je 0x41c12a
sub eax, 1
je 0x41c118
push ecx
mov edx, str._unknown_
mov ecx, str._IPC_send__Message__s_sending__process:__s
call fcn.0041ca00
jmp 0x41c17e
push ecx
mov edx, str.RequestShutdownSub
mov ecx, str._IPC_send__Message__s_sending__process:__s
call fcn.0041ca00
jmp 0x41c17e
push ecx
mov edx, str.Heartbeat
mov ecx, str._IPC_send__Message__s_sending__process:__s
call fcn.0041ca00
jmp 0x41c17e
push ecx
mov edx, str.Initialize
mov ecx, str._IPC_send__Message__s_sending__process:__s
call fcn.0041ca00
jmp 0x41c17e
call fcn.00421240
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00432fe0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x41c16e
mov eax, dword [eax]
push eax
mov edx, str.Heartbeat
mov ecx, str._IPC_send__Message__s_sending__process:__s
call fcn.0041c950
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00419480
lea ecx, [ebp - 0x40]
call fcn.00419480
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004c6d5c
mov dword [ebp - 0x1c], eax
add esp, 4
mov dword [eax], ebx
mov dword [ebp - 0x18], 4
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41c1d5
mov eax, dword [ecx + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call ebx
push 4
push dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov ecx, str.IPC::Write
call fcn.0045ff35
add esp, 8
cmp dword [ebp - 0x14], 4
jne 0x41c248
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x41c225
mov eax, dword [ecx + 0xc]
push 0
lea edi, [ebp - 0x14]
push edi
mov edi, dword [ebp - 0x20]
push edx
push edi
push eax
call ebx
push dword [ebp - 0x24]
mov edx, edi
mov ecx, str.IPC::Write
push dword [ebp - 0x14]
call fcn.0045ff35
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41c25f
push eax
call fcn.004c6d3f
add esp, 4
mov dword [ebp - 0x1c], 0
push esi
mov dword [ebp - 4], 6
call fcn.0048f03d
add esp, 4
test eax, eax
je 0x41c27c
push eax
call fcn.0048f502
add esp, 4
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.004a65f2
mov esp, ebp
pop ebp
ret 4