Function at 0x408ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fdbc
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4c2100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xbc], eax
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], 0
call fcn.00413900
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0xf
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmova eax, dword [ebp - 0x9c]
push 0
push dword [ebp - 0x8c]
push eax
push 0
push 0xfde9
call edi
mov esi, eax
mov dword [ebp - 0xa8], 0
push esi
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
push 0
lea ecx, [ebp - 0xb8]
movups xmmword [ebp - 0xb8], xmm0
call fcn.00418850
cmp dword [ebp - 0xa4], 7
lea ecx, [ebp - 0xb8]
push esi
cmova ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0xf
push ecx
push dword [ebp - 0x8c]
cmova eax, dword [ebp - 0x9c]
push eax
push 0
push 0xfde9
call edi
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x409017
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40900d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40940b
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
mov byte [ebp - 0xa0], 0
lea edx, [ebp - 0xb8]
push dword [ebp - 0xa0]
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.0041a2c0
add esp, 4
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
call fcn.004035a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc8]
cmp ecx, 7
jbe 0x4090ae
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4090a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409406
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xa4]
cmp ecx, 7
jbe 0x4090f2
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4090e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40940b
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov esi, dword [ebp - 0xbc]
cmp dword [esi + 0x80], 0
jne 0x40927d
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x40910f
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp byte [eax + ecx - 1], 0x2f
jne 0x40927d
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004045c0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00404680
test al, al
je 0x4091e2
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x409177
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40916d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409431
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x4091c5
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4091bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409431
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476631
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x2c]
call fcn.00405530
test al, al
je 0x409410
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40922c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409222
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409431
push ecx
push edx
call fcn.00476bd7
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp + 0x20]
cmp ecx, 7
jbe 0x4091c5
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4091bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409431
jmp 0x4091bb
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403a00
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.004045c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xa4]
cmp ecx, 7
jbe 0x4092e0
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4092d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409436
push ecx
push edx
call fcn.00476bd7
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00404680
test al, al
jne 0x40931c
lea ecx, [ebp - 0x64]
call fcn.00405530
test al, al
je 0x409410
cmp dword [ebp + 0x20], 7
lea eax, [ebp + 0xc]
push 0
cmova eax, dword [ebp + 0xc]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409351
push str.could_not_create_file
jmp 0x409415
cmp dword [esi + 0x14], 0xf
jbe 0x409359
mov esi, dword [esi]
mov edx, esi
sub esp, 8
mov esi, dword [ebp - 0xc0]
mov ecx, dword [esi + 0x18]
call fcn.00408510
add esp, 8
test eax, eax
jns 0x409379
xor eax, eax
xor ecx, ecx
jmp 0x409396
push ecx
lea ecx, [ebp - 0xc4]
mov edx, eax
push ecx
mov ecx, dword [esi + 0x18]
call fcn.00408bd0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0xc4]
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4093b0
push str.could_not_write_file
jmp 0x409415
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
cmp ecx, 7
jbe 0x4093ed
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4093e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409431
push ecx
push edx
call fcn.00476bd7
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
jmp 0x409240
call fcn.0047fa03
call fcn.0047fa03
push str.could_not_create_directory
lea ecx, [ebp - 0x90]
call fcn.004018e0
push 0x4c0bcc
lea eax, [ebp - 0x90]
push eax
call fcn.0047804d
call fcn.0047fa03
call fcn.0047fa03
int3