Function at 0x2001448
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x2012008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x18f]
push ebx
push eax
mov byte [ebp - 0x190], bl
call fcn.02006ed0
push 0x3f
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.02006ed0
push 0x3f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.02006ed0
add esp, 0x24
push 0x104
lea eax, [ebp - 0x4a0]
push eax
push ebx
mov dword [ebp - 0x4a4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [ebp + eax - 0x4a0]
mov byte [ebp + eax - 0x398], cl
inc eax
cmp cl, bl
jne 0x20014ba
lea eax, [ebp - 0x398]
push 0x5c
push eax
call fcn.020039f0
pop ecx
pop ecx
mov byte [eax], bl
mov ecx, 0x2010420
lea ebx, [ebp - 0x190]
call fcn.020019c7
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20014f3
lea edi, [ebp - 0x398]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x2001503
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x201047c
lea ebx, [ebp - 0x48]
call fcn.020019c7
mov ecx, 0x201049c
lea ebx, [ebp - 0x88]
call fcn.020019c7
mov eax, ebx
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x398]
push eax
call fcn.0200265d
pop ecx
test eax, eax
je 0x2001678
xor ebx, ebx
xor eax, eax
mov cl, byte [ebp + eax - 0x398]
mov byte [ebp + eax - 0x190], cl
inc eax
cmp cl, bl
jne 0x200156b
lea edi, [ebp - 0x190]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x2001585
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x190]
mov esi, 0x2010440
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x2001678
push ebx
lea eax, [ebp - 0x4a4]
push eax
push 0x778
push 0x204ee00
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x20015e4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2001678
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x500]
push ebx
push eax
call fcn.02006ed0
xor eax, eax
lea edi, [ebp - 0x4b8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x398]
add esp, 0xc
mov dword [ebp - 0x500], esi
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x2001617
mov esi, 0x20104ac
lea eax, [ebp - 0x4a0]
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x200162e
lea edi, [ebp - 0x398]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x200163e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x500]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x398]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [ebp - 0x4a8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.020035b0
leave
ret