Function at 0x405cdd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x42800c]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x405d0c
mov ecx, dword [edi]
call fcn.004054e0
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jl 0x405d36
mov eax, 0x10000
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409765
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x405d49
call fcn.00404f55
jmp 0x405d49
mov ecx, dword [edi]
call fcn.00404f8c
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x405d42
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.0040564f
test byte [esp + 0x224], 0x10
movzx eax, word [esi]
je 0x405d95
cmp eax, 0x2f
je 0x405d88
cmp eax, 0x5c
je 0x405d88
test ax, ax
je 0x405d80
cmp word [esi + 2], 0x3a
je 0x405d88
lea ecx, [edi + 0x244]
jmp 0x405d8a
xor ecx, ecx
mov edx, esi
call fcn.00405bdc
xor eax, eax
jmp 0x405d1f
push 0x5c
mov ebx, esi
mov dword [esp + 0x18], 0x2f
mov ecx, esi
pop edx
jmp 0x405dbb
cmp ax, word [esp + 0x14]
je 0x405db2
cmp ax, dx
jne 0x405db5
lea ebx, [ecx + 2]
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x405da6
push esi
lea eax, [esp + 0x254]
push 0x104
push eax
call fcn.0040d16d
add esp, 0xc
cmp ebx, esi
jne 0x405de6
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x405e2a
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x405f79
xor ecx, ecx
mov word [esp + eax + 0x250], cx
mov ax, word [esp + 0x250]
push 0x2f
pop ecx
cmp ax, cx
je 0x405e54
push 0x5c
pop ecx
cmp ax, cx
je 0x405e54
test ax, ax
je 0x405e2a
cmp word [esp + 0x252], 0x3a
je 0x405e54
push ebx
lea eax, [esp + 0x254]
push eax
lea esi, [edi + 0x244]
push esi
lea eax, [esp + 0x464]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, esi
jmp 0x405e75
push ebx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push 0x424a30
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ecx, ecx
lea edx, [esp + 0x250]
call fcn.00405bdc
xor esi, esi
lea eax, [esp + 0x458]
push esi
push dword [esp + 0x228]
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x405eb5
mov eax, 0x200
jmp 0x405d1f
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.00405172
cmp dword [edi + 0x240], esi
jne 0x405edb
push 0x4000
call fcn.00409799
pop ecx
mov dword [edi + 0x240], eax
mov edx, dword [edi + 0x240]
lea eax, [esp + 0x13]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.004052bf
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffff96
je 0x405f5c
test ebx, ebx
js 0x405f2a
jle 0x405f1f
push esi
lea eax, [esp + 0x250]
push eax
push ebx
push dword [edi + 0x240]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405f31
cmp byte [esp + 0x13], 0
jne 0x405f38
test ebx, ebx
jne 0x405edb
mov esi, 0x5000000
jmp 0x405f61
mov esi, 0x400
jmp 0x405f61
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x238]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x405f61
mov esi, 0x1000
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.004054e0
mov eax, esi
jmp 0x405d1f
call fcn.004098ca
int3