Function at 0x405e00
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a760
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x46c180]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x40], ebp
or edi, 0xffffffff
cmp dword [ebx + 0x1c], ebp
je 0x405e39
cmp dword [ebx + 0x5c], edi
jne 0x405e40
mov esi, ebx
call fcn.004056d0
cmp dword [ebx + 0x1c], ebp
jne 0x405e8d
mov dword [esp + 0x40], edi
mov esi, dword [esp + 0x4c]
cmp esi, ebp
je 0x405e76
lea eax, [esi + 8]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x405e76
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edi
jne 0x405e76
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 8
mov eax, dword [ebx + 0x5c]
cmp eax, edi
jne 0x405ebc
mov dword [esp + 0x40], edi
mov esi, dword [esp + 0x4c]
cmp esi, ebp
je 0x405e76
lea ecx, [esi + 8]
mov edx, edi
lock xadd dword [ecx], edx
jne 0x405e76
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
jmp 0x405e6b
push ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x28], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
cmp eax, ebp
jne 0x405ee5
lea eax, [esp + 0x48]
mov dword [esp + 0x40], edi
call fcn.00405350
jmp 0x405e76
mov edx, dword [ebx + 0x5c]
mov edi, str.IPMSt
mov dword [esp + 0x1c], edx
mov esi, 4
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405f24
mov eax, dword [esp + 0x20]
add ebp, eax
sub esi, eax
add edi, eax
cmp ebp, 4
jl 0x405ef6
sete al
test al, al
jne 0x405f41
mov esi, ebx
call fcn.004060c0
lea eax, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00405350
jmp 0x405e76
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0x24], eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ecx
xor ebp, ebp
mov esi, 4
mov eax, dword [esp + 0x20]
push 0
lea edx, [esp + 0x20]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405f24
mov eax, dword [esp + 0x1c]
add ebp, eax
sub esi, eax
add edi, eax
cmp ebp, 4
jl 0x405f5e
sete al
test al, al
je 0x405f24
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 8]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x14], edx
lea edi, [esp + 0x14]
mov dword [esp + 0x20], eax
xor ebp, ebp
mov esi, 4
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405f24
mov eax, dword [esp + 0x1c]
add ebp, eax
sub esi, eax
add edi, eax
cmp ebp, 4
jl 0x405fa9
sete al
test al, al
je 0x405f24
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x5c]
push ecx
push edx
call fcn.00405db0
add esp, 8
test al, al
je 0x405f24
mov eax, dword [ebx + 0x50]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x50]
mov edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
nop
test ecx, ecx
je 0x40602a
cmp ecx, dword [esp + 0x30]
je 0x40602f
call fcn.00444c4b
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x2c], eax
je 0x406096
mov ebp, dword [ebx + 0x60]
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x40604e
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [esp + 0x28]
mov byte [esp + 0x40], 1
call fcn.00406190
mov edi, dword [eax]
sub esp, 8
lea eax, [esp + 0x50]
mov esi, esp
mov dword [esp + 0x24], esp
call fcn.004052f0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
test ebp, ebp
je 0x406087
add ebp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x28]
call fcn.004061c0
mov ecx, dword [esp + 0x28]
jmp 0x406020
lea eax, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call fcn.00405350
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 8