Function at 0x402190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42378e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x42f6ac]
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, 0x42a884
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
xor bl, bl
call fcn.00403740
push 0x42a880
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403830
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x70], 0x10
jb 0x402214
push dword [ebp - 0x84]
call fcn.0040c7d6
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 0x40229a
push 0
lea ecx, [ebp - 0x28]
call fcn.00402ef0
movsx ecx, byte [eax]
movzx eax, byte [edi]
cmp eax, ecx
mov eax, dword [ebp - 0x18]
jne 0x40228e
xor edx, edx
mov bl, 1
test eax, eax
jle 0x40228e
mov esi, eax
jmp 0x402260
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 0x402260
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 0x402236
mov dword [ebp - 0x60], 0
test bl, bl
je 0x4022ab
dec eax
add eax, esi
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x10]
push eax
mov edx, 0x42a888
lea ecx, [ebp - 0x9c]
xor bl, bl
call fcn.00403740
push 0x42a880
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00403830
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], 0x10
jb 0x4022f2
push dword [ebp - 0x9c]
call fcn.0040c7d6
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 0x402320
cmp esi, ecx
jge 0x402373
push 0
lea ecx, [ebp - 0x40]
call fcn.00402ef0
movsx ecx, byte [eax]
movzx eax, byte [edi]
cmp eax, ecx
jne 0x40236a
xor edx, edx
mov bl, 1
cmp dword [ebp - 0x30], edx
jle 0x40236a
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 0x402341
mov ecx, dword [ebp + 0xc]
inc esi
inc edi
test bl, bl
je 0x402320
xor ecx, ecx
test bl, bl
je 0x40237c
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.00403040
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 0x4023c4
or esi, eax
jmp 0x4023e7
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 0x4023f8
push dword [ebp - 0x58]
call fcn.0040c7d6
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40241b
push dword [ebp - 0x40]
call fcn.0040c7d6
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40243e
push dword [ebp - 0x28]
call fcn.0040c7d6
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x402461
push dword [ebp + 0x10]
call fcn.0040c7d6
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.0040c7c7
mov esp, ebp
pop ebp
ret