Function at 0x40c0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c0f3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp - 0x58]
mov esi, ecx
push eax
mov ecx, edi
mov dword [ebp - 0x50], edi
call fcn.0042b010
mov eax, dword [ebp - 0x58]
xor ebx, ebx
sub eax, ebx
je 0x40c1c7
sub eax, 1
je 0x40c17c
sub eax, 1
jne 0x40c362
push 4
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, edi
call fcn.0042b010
mov edx, dword [esi + 0xcc]
cmp dword [ebp - 0x5c], edx
jne 0x40c362
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov edi, dword [edi + 4]
sub eax, edx
mov dword [ebp - 0x4c], ebx
cmp edi, ebx
je 0x40c143
mov ecx, dword [edi + 4]
add ecx, edx
jmp 0x40c145
xor ecx, ecx
push ebx
lea edx, [ebp - 0x4c]
push edx
push eax
mov eax, dword [esi + 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c16b
mov ecx, dword [ebp - 0x4c]
add dword [esi + 0xcc], ecx
jmp 0x40c362
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc8], eax
jmp 0x40c362
mov ecx, esi
mov byte [esi + 0xd4], 1
call fcn.00407460
mov edx, dword [esi + 0xd0]
mov eax, dword [esi + 0xcc]
cmp eax, edx
jne 0x40c1ae
cmp dword [esi + 0xc8], ebx
jne 0x40c1ae
mov ecx, esi
call fcn.0040a240
jmp 0x40c362
mov ecx, dword [esi + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
call fcn.0040a190
jmp 0x40c362
mov ecx, esi
call fcn.00407460
push 4
lea edx, [ebp - 0x54]
push edx
mov ecx, edi
call fcn.0042b010
mov eax, dword [ebp - 0x54]
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], eax
mov dword [esi + 0xc8], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004087c0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00407cd0
add esp, 8
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x8c]
push eax
mov ecx, edi
call fcn.00402a00
mov byte [ebp - 4], bl
cmp dword [ebp - 0x60], 8
jb 0x40c246
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00450138
add esp, 4
push str..putting
lea eax, [ebp - 0x94]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x74], dx
call fcn.00406660
add esp, 0xc
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0xa8]
push eax
mov ecx, edi
call fcn.00402a00
mov byte [ebp - 4], bl
cmp dword [ebp - 0x7c], 8
jb 0x40c298
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00450138
add esp, 4
lea eax, [ebp - 0x48]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], ebx
mov word [ebp - 0x90], dx
call fcn.00426eb0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40c2c8
lea eax, [ebp - 0x44]
push eax
call fcn.004266c0
add esp, 4
test al, al
jne 0x40c2e1
lea ecx, [ebp - 0x48]
push ecx
call fcn.004270f0
add esp, 4
cmp dword [edi + 0x18], 8
jb 0x40c2ec
mov edi, dword [edi + 4]
jmp 0x40c2ef
add edi, 4
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or edi, 0xffffffff
mov dword [esi + 0xc4], eax
mov ecx, esi
cmp eax, edi
jne 0x40c330
call fcn.0040a190
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.00402020
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], 0x10
jb 0x40c355
mov edx, dword [ebp - 0x28]
push edx
jmp 0x40c34d
call fcn.0040a240
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.00402020
mov dword [ebp - 4], edi
cmp dword [ebp - 0x14], 0x10
jb 0x40c355
mov eax, dword [ebp - 0x28]
push eax
call fcn.00450138
add esp, 4
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 4