Function at 0x41a585
Capabilities:
Clear file content
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x616724]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [0x6167a4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x60], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x84], ecx
push eax
push 0x8000000
push 4
push eax
push eax
mov dword [ecx], eax
mov dword [ebp - 0x6c], eax
mov dword [esi], eax
lea eax, [ebx + 0x2532]
push 0x40000000
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x2d], 1
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebx + 0x39f8], ecx
cmp ecx, 0xffffffff
jne 0x41a489
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, 0xed9
jmp 0x41a9b8
cmp byte [ebx + 0x39bc], 0
je case.0x41a4a9.6
movsx eax, word [ebx + 0x39b8]
add eax, 0xfffffffd
cmp eax, 8
ja case.0x41a4a9.6
jmp dword [eax*4 + 0x41a9e0]
push 0
lea eax, [ebx + 0x3a0c]
mov word [ebp - 8], 0xbbef
push eax
push 3
lea eax, [ebp - 8]
mov byte [ebp - 6], 0xbf
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x41a4a9.6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, 0xeda
jmp 0x41a9ac
push 0
lea eax, [ebx + 0x3a0c]
mov word [ebp - 8], 0xfeff
push eax
push 2
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x41a4a9.6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, 0xedb
jmp 0x41a9ac
push 0
lea eax, [ebx + 0x3a0c]
mov word [ebp - 8], 0xfffe
push eax
push 2
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x41a4a9.6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, 0xedc
jmp 0x41a9ac
push 0
lea eax, [ebx + 0x3a0c]
mov dword [ebp - 8], 0xfeff
push eax
push 4
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x41a4a9.6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, 0xedd
jmp 0x41a9ac
push 0
lea eax, [ebx + 0x3a0c]
mov dword [ebp - 8], 0xfffe0000
push eax
push 4
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x41a4a9.6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, 0xede
jmp 0x41a9ac
mov eax, dword [ebx + 0x3a14]
mov esi, dword [eax]
mov eax, esi
mov dword [ebp - 0x34], esi
test eax, eax
je 0x41a5da
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x41a5d0
mov dword [ebp - 0x68], ecx
mov eax, dword [ebx + 0x3a18]
push 0x5aace0
push 0
push 0x801d
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x3a18]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
mov dword [ebp - 0x74], 1
test ecx, ecx
je 0x41a972
mov dword [ebp - 0x64], edi
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x44], eax
nop
mov edi, dword [ebp - 0x60]
mov esi, ecx
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov al, 1
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x25], al
test al, al
je 0x41a674
movzx eax, byte [edi + 0x6c55]
mov ecx, esi
push eax
movzx eax, byte [edi + 0x6c54]
push eax
push 0
push 1
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00531230
add ebx, eax
cmp dword [ebp - 0x38], 0
jne 0x41a66b
mov esi, dword [esi]
test esi, esi
je 0x41a674
mov al, byte [ebp - 0x25]
jmp 0x41a636
mov dword [ebp - 0x40], ebx
test ebx, ebx
jle 0x41a8d9
xor ecx, ecx
lea esi, [ebx + 0x64]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x40]
mov edi, 4
add eax, 0x65
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov dword [ebp - 0x54], eax
xor ecx, ecx
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov esi, dword [ebp - 0x34]
mov edi, eax
mov eax, dword [ebp - 0x44]
add esp, 0x10
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov al, 1
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x25], al
test al, al
je 0x41a773
mov ecx, dword [ebp - 0x60]
movzx eax, byte [ecx + 0x6c55]
push eax
movzx eax, byte [ecx + 0x6c54]
mov ecx, esi
push eax
push 0
push 1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x58]
lea eax, [ebp - 0x78]
push dword [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00531470
mov ecx, dword [ebp - 0x50]
add ecx, eax
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x50], ecx
jne 0x41a76a
mov esi, dword [esi]
test esi, esi
je 0x41a773
mov al, byte [ebp - 0x25]
jmp 0x41a714
mov edi, dword [ebp - 0x2c]
cmp edi, ecx
jl 0x41a784
sub edi, ecx
mov dword [ebp - 0x2c], edi
jmp 0x41a8ae
mov edx, dword [ebp - 0x40]
cmp edi, edx
jge 0x41a8a9
nop
cmp word [ebx + edi*2], 0xa
jne 0x41a7c5
test edi, edi
jle 0x41a7c5
cmp word [ebx + edi*2 - 2], 0xd
jne 0x41a7c5
lea ecx, [edi - 2]
test ecx, ecx
js 0x41a7e3
nop word [eax + eax]
movzx eax, word [ebx + ecx*2]
cmp eax, 0xd
je 0x41a7e3
cmp eax, 0xa
je 0x41a7e3
sub ecx, 1
jns 0x41a7b0
jmp 0x41a7e3
lea ecx, [edi - 1]
test ecx, ecx
js 0x41a7e3
nop dword [eax]
movzx eax, word [ebx + ecx*2]
cmp eax, 0xd
je 0x41a7e3
cmp eax, 0xa
je 0x41a7e3
sub ecx, 1
jns 0x41a7d0
inc ecx
mov esi, edi
cmp edi, edx
jge 0x41a81c
nop word [eax + eax]
movzx eax, word [ebx + esi*2]
cmp eax, 0xd
je 0x41a807
cmp eax, 0xa
je 0x41a81c
inc esi
cmp esi, edx
jl 0x41a7f0
mov edi, esi
jmp 0x41a843
lea eax, [esi + 1]
cmp eax, edx
jge 0x41a81c
cmp word [ebx + esi*2 + 2], 0xa
jne 0x41a81c
mov esi, eax
mov edi, esi
jmp 0x41a822
mov edi, esi
cmp esi, edx
jge 0x41a843
movzx eax, word [ebx + esi*2]
cmp eax, 0xa
jne 0x41a839
cmp word [ebx + esi*2 - 2], 0xd
lea edi, [esi - 1]
jne 0x41a841
dec edi
jmp 0x41a841
cmp eax, 0xd
jne 0x41a841
lea edi, [esi - 1]
inc esi
inc edi
mov dword [ebp - 0x2c], esi
mov edx, ecx
cmp ecx, esi
jge 0x41a899
nop dword [eax]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + edx*4]
cmp dword [eax + 0x24], 0
jne 0x41a866
inc edx
cmp edx, esi
jl 0x41a850
mov edi, dword [ebp - 0x2c]
jmp 0x41a89b
push dword [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2d]
push eax
push edi
push esi
push ecx
mov ecx, dword [ebp - 0x3c]
push ebx
call fcn.0041aa10
mov edi, eax
mov dword [ebp - 0x48], edi
test edi, edi
jne 0x41a983
mov eax, dword [ebp - 0x84]
mov edi, dword [ebp - 0x2c]
inc dword [eax]
jmp 0x41a89b
mov edi, esi
mov edx, dword [ebp - 0x40]
cmp esi, edx
jl 0x41a790
mov ecx, dword [ebp - 0x50]
sub edx, ecx
mov dword [ebp - 0x2c], edx
push ebx
call fcn.00560853
push dword [ebp - 0x54]
call fcn.00560853
push dword [ebp - 0x58]
call fcn.00560853
push dword [ebp - 0x5c]
call fcn.00560853
add esp, 0x10
cmp dword [ebp - 0x48], 0
jne 0x41a9a6
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x41a620
mov eax, dword [ebp - 0x64]
add eax, 0x64
mov ecx, dword [ecx]
mov dword [ebp - 0x64], eax
cdq
idiv dword [ebp - 0x68]
mov dword [ebp - 0x34], ecx
mov esi, eax
cmp esi, dword [ebp - 0x6c]
je 0x41a967
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x24]
push 1
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x41a946
nop dword [eax]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x41a920
mov ebx, dword [ebp - 0x3c]
push esi
push 0
push 0x801c
mov eax, dword [ebx + 0x3a18]
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], esi
jmp 0x41a96a
mov ebx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x41a618
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [ebp - 0x48]
jmp 0x41a9ac
push ebx
call fcn.00560853
push dword [ebp - 0x54]
call fcn.00560853
push dword [ebp - 0x58]
call fcn.00560853
push dword [ebp - 0x5c]
call fcn.00560853
add esp, 0x10
jmp 0x41a9a9
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
push dword [ebx + 0x39f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x3a18]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0xc