Function at 0x405d25
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 0x405d54
mov ecx, dword [edi]
call fcn.00405528
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jl 0x405d7e
mov eax, 0x10000
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004097ab
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x405d91
call fcn.00404f9d
jmp 0x405d91
mov ecx, dword [edi]
call fcn.00404fd4
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x405d8a
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00405697
test byte [esp + 0x224], 0x10
movzx eax, word [esi]
je 0x405ddd
cmp eax, 0x2f
je 0x405dd0
cmp eax, 0x5c
je 0x405dd0
test ax, ax
je 0x405dc8
cmp word [esi + 2], 0x3a
je 0x405dd0
lea ecx, [edi + 0x244]
jmp 0x405dd2
xor ecx, ecx
mov edx, esi
call fcn.00405c24
xor eax, eax
jmp 0x405d67
push 0x5c
mov ebx, esi
mov dword [esp + 0x18], 0x2f
mov ecx, esi
pop edx
jmp 0x405e03
cmp ax, word [esp + 0x14]
je 0x405dfa
cmp ax, dx
jne 0x405dfd
lea ebx, [ecx + 2]
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x405dee
push esi
lea eax, [esp + 0x254]
push 0x104
push eax
call fcn.0040d1de
add esp, 0xc
cmp ebx, esi
jne 0x405e2e
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x405e72
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x405fc1
xor ecx, ecx
mov word [esp + eax + 0x250], cx
mov ax, word [esp + 0x250]
push 0x2f
pop ecx
cmp ax, cx
je 0x405e9c
push 0x5c
pop ecx
cmp ax, cx
je 0x405e9c
test ax, ax
je 0x405e72
cmp word [esp + 0x252], 0x3a
je 0x405e9c
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 0x405ebd
push ebx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push 0x424a38
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ecx, ecx
lea edx, [esp + 0x250]
call fcn.00405c24
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 0x405efd
mov eax, 0x200
jmp 0x405d67
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.004051ba
cmp dword [edi + 0x240], esi
jne 0x405f23
push 0x4000
call fcn.004097df
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.00405307
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffff96
je 0x405fa4
test ebx, ebx
js 0x405f72
jle 0x405f67
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 0x405f79
cmp byte [esp + 0x13], 0
jne 0x405f80
test ebx, ebx
jne 0x405f23
mov esi, 0x5000000
jmp 0x405fa9
mov esi, 0x400
jmp 0x405fa9
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 0x405fa9
mov esi, 0x1000
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.00405528
mov eax, esi
jmp 0x405d67
call fcn.00409910
int3