Function at 0x402f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c83e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x43b83c]
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, edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov edx, 0x434f6c
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
xor bl, bl
call fcn.004048f0
push 0x434f68
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004049e0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x70], 0x10
jb 0x402f84
push dword [ebp - 0x84]
call fcn.004152b7
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x64], edx
add edi, esi
cmp esi, edx
jge 0x40300a
push 0
lea ecx, [ebp - 0x28]
call fcn.00403ce0
movsx ecx, byte [eax]
movzx eax, byte [edi]
cmp eax, ecx
mov eax, dword [ebp - 0x18]
jne 0x402ffe
xor edx, edx
mov bl, 1
test eax, eax
jle 0x402ffe
mov esi, eax
jmp 0x402fd0
cmp dword [ebp - 0x14], 0x10
movzx ecx, byte [edi + edx]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx ebx, bl
movsx eax, byte [eax + edx]
cmp ecx, eax
mov dword [ebp - 0x60], 0
cmovne ebx, dword [ebp - 0x60]
inc edx
cmp edx, esi
jl 0x402fd0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x64]
inc esi
inc edi
mov dword [ebp + 8], esi
test bl, bl
je 0x402fa6
mov dword [ebp - 0x60], 0
test bl, bl
je 0x40301b
dec eax
add eax, esi
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x10]
push eax
mov edx, 0x434f70
lea ecx, [ebp - 0x9c]
xor bl, bl
call fcn.004048f0
push 0x434f68
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004049e0
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], 0x10
jb 0x403062
push dword [ebp - 0x9c]
call fcn.004152b7
add esp, 4
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
mov dword [ebp + 0xc], ecx
add edi, esi
jmp 0x403090
cmp esi, ecx
jge 0x4030e3
push 0
lea ecx, [ebp - 0x40]
call fcn.00403ce0
movsx ecx, byte [eax]
movzx eax, byte [edi]
cmp eax, ecx
jne 0x4030da
xor edx, edx
mov bl, 1
cmp dword [ebp - 0x30], edx
jle 0x4030da
cmp dword [ebp - 0x2c], 0x10
movzx ecx, byte [edi + edx]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx ebx, bl
movsx eax, byte [eax + edx]
cmp ecx, eax
mov dword [ebp - 0x64], 0
cmovne ebx, dword [ebp - 0x64]
inc edx
cmp edx, dword [ebp - 0x30]
jl 0x4030b1
mov ecx, dword [ebp + 0xc]
inc esi
inc edi
test bl, bl
je 0x403090
xor ecx, ecx
test bl, bl
je 0x4030ec
lea ecx, [esi - 1]
sub ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004041c0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403134
or esi, eax
jmp 0x403157
cmp dword [ebp - 0x44], 0x10
push 0
lea ecx, [ebp - 0x5c]
push ecx
push dword [ebp - 0x48]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44], 0x10
jb 0x403168
push dword [ebp - 0x58]
call fcn.004152b7
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40318b
push dword [ebp - 0x40]
call fcn.004152b7
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x4031ae
push dword [ebp - 0x28]
call fcn.004152b7
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4031d1
push dword [ebp + 0x10]
call fcn.004152b7
add esp, 4
mov eax, esi
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.00415144
mov esp, ebp
pop ebp
ret