Function at 0x40a349
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0x48
mov eax, 0x44afc8
call fcn.00433137
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x30], ebx
mov dword [ebp - 4], ebx
jne 0x40a3a2
push ebx
push 1
lea ecx, [ebp + 0x64]
call fcn.00401627
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.00432980
add ebp, 0x5c
leave
ret 0x1c
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
add esi, 0x28
push esi
push eax
lea ecx, [ebp]
call fcn.00407803
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407803
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.00407667
test al, al
jne 0x40a541
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x54], 0xf
call fcn.0040155f
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004076af
lea ecx, [ebp]
call fcn.004076af
add eax, 4
push eax
lea ecx, [ebp + 0x14]
call fcn.00407ba8
push 0x44fc5c
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.00407f8e
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.00407fd5
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 4
call fcn.004018b9
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401627
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00401627
cmp dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x40]
jae 0x40a46c
lea eax, [ebp + 0x40]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40a4fb
mov eax, dword [ebp + 0x38]
inc eax
push eax
mov dword [ebp - 0x10], ebx
call fcn.00416020
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x40a567
mov ecx, dword [ebp + 0x38]
inc ecx
push ecx
push ebx
push eax
call fcn.004328f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
add esp, 0xc
cmp ecx, ebx
je 0x40a547
push dword [ebp + 0x38]
mov eax, dword [ecx]
push dword [ebp + 0x34]
call dword [eax + 8]
cmp eax, ebx
je 0x40a547
push dword [ebp + 0x38]
push eax
push dword [ebp + 8]
call fcn.00432540
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x38]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call fcn.00416025
pop ecx
push dword [ebp + 0xc]
call edi
push ebx
push 1
lea ecx, [ebp + 0x14]
call fcn.00401627
push ebx
push 1
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], bl
call fcn.00401627
lea ecx, [ebp]
call fcn.00407827
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x1c]
call fcn.00407803
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.00407667
test al, al
je 0x40a3db
mov byte [ebp + 0x13], 1
jmp 0x40a585
push dword [ebp + 0xc]
call edi
push ebx
push 1
lea ecx, [ebp + 0x14]
call fcn.00401627
push ebx
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401627
jmp 0x40a376
push dword [ebp + 0xc]
call edi
push ebx
push 1
lea ecx, [ebp + 0x14]
call fcn.00401627
push ebx
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401627
mov byte [ebp + 0x13], bl
push ebx
push 1
lea ecx, [ebp + 0x64]
call fcn.00401627
mov al, byte [ebp + 0x13]
jmp 0x40a383