Function at 0x405170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442c78
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x50], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
push 0
push 2
push ecx
push dword [esi + 0x24]
mov dword [ebp - 0x10], eax
push dword [esi + 0x28]
push eax
call ebx
test eax, eax
je 0x405363
push 0
push 0
push 0x100002
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x24]
push dword [esi + 0x2c]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x405363
push 0
push 0
push 0x100000
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x24]
push dword [edi + 0x44]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x405363
lea eax, [edi + 0x8c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x2c
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test eax, eax
je 0x405276
xor eax, eax
jmp 0x40527c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x40528b
cmp eax, 0x3e5
jne 0x4053b6
mov ebx, dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
lea eax, [ebp + 8]
push 0x14
push 0xffffffffffffffff
push esi
push 0x405130
mov dword [ebp + 8], 0
push dword [esi + 0x28]
mov dword [ebp - 0x18], esi
push eax
call ebx
test eax, eax
je 0x4053b6
mov eax, dword [ebp + 8]
push 8
push 0xffffffffffffffff
push esi
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x10]
push 0x405050
mov dword [ebp - 0x10], 0
push dword [esi + 0x24]
push eax
call ebx
test eax, eax
je 0x4053b6
mov eax, dword [ebp - 0x10]
push edi
mov dword [esi + 0x34], eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x20], 1
cmp byte [edi + 0x88], 0
mov dword [ebp - 4], 0
je 0x40530e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4053b6
mov ebx, dword [edi + 0x18]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x18]
mov eax, dword [ebx + 4]
push eax
push ebx
mov dword [ebp - 0x1c], eax
call fcn.004043e0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 0x1c]
sub ecx, eax
cmp ecx, 1
jb 0x4053cc
inc eax
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], edx
push edi
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405381
push 1
push 0
push 0
push 0
push 0
push eax
push dword [esi + 0x24]
call ebx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40539f
push 1
push 0
push 0
push 0
push 0
push eax
push dword [esi + 0x24]
call ebx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4053b6
push 1
push 0
push 0
push 0
push 0
push eax
push dword [esi + 0x24]
call ebx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.0040d285
int3