Function at 0x409350
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b806
mov eax, dword fs:[0]
push eax
mov eax, 0x2294
call fcn.0040a410
mov eax, dword [0x42424c]
xor eax, esp
mov dword [esp + 0x2290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42424c]
xor eax, esp
push eax
lea eax, [esp + 0x22a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x22b8]
cmp dword [eax + 0x18], 0x10
mov esi, dword [esp + 0x22bc]
mov dword [esp + 0x18], esi
jb 0x4093ac
mov eax, dword [eax + 4]
jmp 0x4093af
add eax, 4
push eax
call fcn.00408bc0
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x4093c7
xor al, al
jmp 0x4095cd
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ecx]
push ebx
push ebx
push ebx
push ebx
push 0x200
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edi
call fcn.00408010
add esp, 0x20
test eax, eax
jne 0x4095c2
lea eax, [esp + 0xa4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409401
sub eax, edx
xor ecx, ecx
cmp eax, ebx
jle 0x40942b
cmp byte [esp + ecx + 0xa4], 0x2f
jne 0x409424
mov byte [esp + ecx + 0xa4], 0x5c
add ecx, 1
cmp ecx, eax
jl 0x409412
cmp eax, 2
jl 0x409494
mov dl, byte [esp + eax + 0xa2]
xor dl, 0x20
add dl, 0x5f
cmp dl, 0x3b
jbe 0x409494
cmp byte [esp + eax + 0xa3], 0x5c
jne 0x409494
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00409290
push eax
mov dword [esp + 0x22c0], ebx
call fcn.004090f0
add esp, 0x10
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x22b0], 0xffffffff
jb 0x4095b0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040a6f2
jmp 0x4095ad
push edi
call fcn.00408e60
add esp, 4
test eax, eax
jne 0x4095c2
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00409290
push eax
mov dword [esp + 0x22c0], 1
call fcn.004090f0
add esp, 0x10
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x22b0], 0xffffffff
jb 0x4094eb
mov edx, dword [esp + 0x20]
push edx
call fcn.0040a6f2
add esp, 4
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.00409290
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x40950c
mov eax, dword [eax + 4]
jmp 0x40950f
add eax, 4
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x50], 0x10
mov esi, eax
jb 0x409537
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040a6f2
add esp, 4
push 0x2000
lea eax, [esp + 0x2a8]
push eax
push edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00408440
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], eax
jbe 0x409595
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x2b0]
push edx
push esi
call ebp
push 0x2000
lea eax, [esp + 0x2a8]
push eax
push edi
call fcn.00408440
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], eax
ja 0x409565
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004086e0
mov esi, dword [esp + 0x1c]
add esp, 4
push edi
call fcn.00408150
add esp, 4
cmp eax, 0xffffff9c
jne 0x4093d0
push edi
call fcn.00408be0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x22a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2290]
xor ecx, esp
call fcn.004096cb
add esp, 0x22a0
ret