Function at 0x401fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415d4e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x41f68c]
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, 0x41b824
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
xor bl, bl
call fcn.00403580
push 0x41b820
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403670
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x70], 0x10
jb 0x402054
push dword [ebp - 0x84]
call fcn.004081ae
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 0x4020da
push 0
lea ecx, [ebp - 0x28]
call fcn.00402d30
movsx ecx, byte [eax]
movzx eax, byte [edi]
cmp eax, ecx
mov eax, dword [ebp - 0x18]
jne 0x4020ce
xor edx, edx
mov bl, 1
test eax, eax
jle 0x4020ce
mov esi, eax
jmp 0x4020a0
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 0x4020a0
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 0x402076
mov dword [ebp - 0x60], 0
test bl, bl
je 0x4020eb
dec eax
add eax, esi
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x10]
push eax
mov edx, 0x41b828
lea ecx, [ebp - 0x9c]
xor bl, bl
call fcn.00403580
push 0x41b820
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00403670
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], 0x10
jb 0x402132
push dword [ebp - 0x9c]
call fcn.004081ae
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 0x402160
cmp esi, ecx
jge 0x4021b3
push 0
lea ecx, [ebp - 0x40]
call fcn.00402d30
movsx ecx, byte [eax]
movzx eax, byte [edi]
cmp eax, ecx
jne 0x4021aa
xor edx, edx
mov bl, 1
cmp dword [ebp - 0x30], edx
jle 0x4021aa
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 0x402181
mov ecx, dword [ebp + 0xc]
inc esi
inc edi
test bl, bl
je 0x402160
xor ecx, ecx
test bl, bl
je 0x4021bc
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.00402e80
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 0x402204
or esi, eax
jmp 0x402227
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 0x402238
push dword [ebp - 0x58]
call fcn.004081ae
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40225b
push dword [ebp - 0x40]
call fcn.004081ae
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40227e
push dword [ebp - 0x28]
call fcn.004081ae
add esp, 4
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4022a1
push dword [ebp + 0x10]
call fcn.004081ae
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.0040819f
mov esp, ebp
pop ebp
ret