Function at 0x405dc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x41c], esi
cmp dword [esi + 4], 0xffffffff
je 0x405def
mov ecx, dword [esi]
call fcn.00405593
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
mov edi, dword [ebp + 8]
cmp edi, dword [eax + 4]
jl 0x405e13
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret 0x10
cmp dword [eax + 0x10], edi
jle 0x405e2d
mov ecx, eax
call fcn.00404fd0
jmp 0x405e28
mov ecx, dword [esi]
call fcn.00405007
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x405e21
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
push edi
call fcn.004056fa
test byte [ebp - 0x444], 0x10
movzx eax, word [ebx]
je 0x405e75
cmp eax, 0x2f
je 0x405e68
cmp eax, 0x5c
je 0x405e68
test ax, ax
je 0x405e60
cmp word [ebx + 2], 0x3a
je 0x405e68
lea ecx, [esi + 0x244]
jmp 0x405e6a
xor ecx, ecx
mov edx, ebx
call fcn.00405cbe
xor eax, eax
jmp 0x405e02
mov dword [ebp - 0x658], ebx
mov edx, ebx
push 0x5c
pop edi
test ax, ax
je 0x405eb0
push 0x2f
mov ecx, eax
pop esi
cmp cx, si
je 0x405e94
cmp cx, di
jne 0x405e9d
lea ecx, [edx + 2]
mov dword [ebp - 0x658], ecx
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x405e8a
mov esi, dword [ebp - 0x41c]
push ebx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00418d15
mov ecx, dword [ebp - 0x658]
add esp, 0xc
xor edi, edi
cmp ecx, ebx
jne 0x405edc
xor eax, eax
mov word [ebp - 0x210], ax
jmp 0x405f1e
mov eax, ecx
sub eax, ebx
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x40606c
xor edx, edx
mov word [ebp + eax - 0x210], dx
mov ax, word [ebp - 0x210]
push 0x2f
pop edx
cmp ax, dx
je 0x405f44
push 0x5c
pop edx
cmp ax, dx
je 0x405f44
test ax, ax
je 0x405f1e
cmp word [ebp - 0x20e], 0x3a
je 0x405f44
push ecx
lea eax, [ebp - 0x210]
push eax
lea ebx, [esi + 0x244]
push ebx
lea eax, [ebp - 0x418]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x405f63
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x446128
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ebx, edi
lea edx, [ebp - 0x210]
mov ecx, ebx
call fcn.00405cbe
push edi
push dword [ebp - 0x444]
lea eax, [ebp - 0x418]
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x658], eax
cmp eax, 0xffffffff
jne 0x405fa2
mov eax, 0x200
jmp 0x405e02
mov edx, dword [esi + 0x23c]
mov ecx, dword [esi]
call fcn.004051eb
cmp dword [esi + 0x240], edi
jne 0x405fc8
push 0x4000
call fcn.00413ad3
pop ecx
mov dword [esi + 0x240], eax
mov edx, dword [esi + 0x240]
lea eax, [ebp - 0x651]
mov ecx, dword [esi]
push eax
push 0x4000
call fcn.0040533f
mov ebx, eax
pop ecx
pop ecx
cmp ebx, 0xffffff96
je 0x40604d
test ebx, ebx
js 0x40601c
jle 0x40600f
push edi
lea eax, [ebp - 0x41c]
push eax
push ebx
push dword [esi + 0x240]
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406023
cmp byte [ebp - 0x651], 0
jne 0x40602a
test ebx, ebx
jne 0x405fc8
mov edi, 0x5000000
jmp 0x406052
mov edi, 0x400
jmp 0x406052
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x406052
mov edi, 0x1000
push dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
call fcn.00405593
mov eax, edi
jmp 0x405e02
call fcn.00413bfd
int3