Function at 0x41a008
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x419dc8
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
mov edx, dword [0x419a08]
call fcn.00404ee0
xor eax, eax
push ebp
push 0x41a252
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
mov edx, 0x41a264
call fcn.00404674
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x38]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x3c]
mov edx, 0x41a27c
call fcn.00404674
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x40]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x44]
mov edx, 0x41a290
call fcn.00404674
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00417bc4
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 4], eax
push 1
push 0x2000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x34]
mov dword [ebp - 8], edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.00402de0
lea eax, [ebp - 0x2c]
push eax
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
add esi, eax
lea eax, [ebp - 0x4c]
mov edx, 0x41a264
call fcn.00404674
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x50]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x54]
mov edx, 0x41a27c
call fcn.00404674
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x58]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x5c]
mov edx, 0x41a290
call fcn.00404674
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x60]
pop edx
call fcn.00417bc4
mov eax, dword [ebp - 4]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x41a05a
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edi, dword [esi + eax*8 + 8]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov dword [ebp - 0x28], eax
cmp edi, dword [ebp - 0x28]
jae 0x419f9f
xor edi, dword [ebp - 0x28]
xor dword [ebp - 0x28], edi
xor edi, dword [ebp - 0x28]
lea eax, [ebp - 0x64]
mov edx, 0x41a264
call fcn.00404674
mov eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x68]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x6c]
mov edx, 0x41a27c
call fcn.00404674
mov eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x70]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x74]
mov edx, 0x41a290
call fcn.00404674
mov eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x78]
pop edx
call fcn.00417bc4
push 4
push 0x1000
push edi
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
add eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, edi
call fcn.00403074
mov edx, dword [ebp - 0x24]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
call fcn.00402de0
inc ebx
dec dword [ebp - 0x30]
jne 0x419f80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4199dc]
call fcn.00405878
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x41a09b
push ebp
add eax, dword [ebp - 0xc]
call fcn.00419c00
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x41a0b2
push ebp
add eax, dword [ebp - 0xc]
call fcn.00419c80
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x41a182
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
lea eax, [ebp - 0x7c]
mov edx, 0x41a264
call fcn.00404674
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x80]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x84]
mov edx, 0x41a27c
call fcn.00404674
mov eax, dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x88]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x8c]
mov edx, 0x41a290
call fcn.00404674
mov eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x90]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x24]
call fcn.00419b90
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 0x30]
jne 0x41a0c8
lea eax, [ebp - 0x94]
mov edx, 0x41a264
call fcn.00404674
mov eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0x98]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0x9c]
mov edx, 0x41a27c
call fcn.00404674
mov eax, dword [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0xa0]
pop edx
call fcn.00417bc4
lea eax, [ebp - 0xa4]
mov edx, 0x41a290
call fcn.00404674
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
mov edx, 0x41a274
call fcn.00404674
mov eax, dword [ebp - 0xa8]
pop edx
call fcn.00417bc4
push 0
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a259
lea eax, [ebp - 0xa8]
mov edx, 0x1e
call fcn.004044a0
lea eax, [ebp - 0x18]
mov edx, dword [0x419a08]
call fcn.00404fa4
ret