Function at 0x41a291
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x41afcf
call fcn.00403df8
sub esp, 0x50
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push esi
mov eax, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov al, byte [eax + 0x30]
test al, al
je 0x41a5cb
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41a5cb
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x41a2f3
push edi
lea ecx, [ebp - 0x5c]
call fcn.00404792
mov byte [ebp - 4], 3
push 2
pop ebx
jmp 0x41a30c
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push dword [esi + 0x14]
push eax
call fcn.00416414
add esp, 0x10
push 4
pop ebx
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], ebx
call fcn.00410cc5
mov dword [ebp - 4], 3
test bl, 4
je 0x41a332
and ebx, 0xfffffffb
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call fcn.004047bf
mov dword [ebp - 4], 1
test bl, 2
je 0x41a34c
and ebx, 0xfffffffd
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], ebx
call fcn.004047bf
test edi, edi
jne 0x41a3bf
test byte [esi], 0x10
je 0x41a3bf
cmp dword [ebp - 0x34], edi
je 0x41a366
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x41a366
lea edi, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
add eax, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x41a374
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004176af
pop ecx
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x41a38c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00416837
add esp, 0xc
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x44]
call fcn.00410cc5
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.004047bf
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004047bf
test dword [esi], 0x800
je 0x41a3fc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00410f2d
or ebx, 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004047bf
mov eax, esi
jmp 0x41a644
cmp dword [ebp - 0x34], 0
je 0x41a58a
cmp dword [esi + 4], 0
je 0x41a3c7
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41a418
lea eax, [ebp - 0x44]
push eax
call fcn.00416deb
pop ecx
mov ecx, dword [0x6258c8]
test ecx, ecx
je 0x41a44c
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41a435
lea eax, [ebp - 0x44]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call ecx
jmp 0x41a477
cmp dword [0x6243c8], 0
je 0x41a474
push 0x14
pop eax
call fcn.0040171b
push esp
push 0x61f5cc
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
jmp 0x41a47f
or eax, 0xffffffff
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x41a49e
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
or ebx, 1
mov byte [esi], al
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], al
jmp 0x41a3ed
xor ecx, ecx
test dword [esi], 0x1000
push 0xfffffffffffffffe
mov dword [ebp + 0x14], ecx
pop edi
je 0x41a50f
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 7
push dword [esi + 4]
lea eax, [ebp - 0x20]
push dword [esi + 0x24]
push eax
call fcn.00418282
mov esi, dword [ebp + 0xc]
add esp, 0xc
test al, al
je 0x41a501
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a4fe
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp dword [ebp + 0x14], eax
jne 0x41a4fe
xor edi, edi
jmp 0x41a501
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00410e1c
jmp 0x41a537
push ecx
lea ecx, [ebp + 0x14]
push ecx
push dword [esi + 4]
push dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a531
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 4]
jne 0x41a531
xor edi, edi
jmp 0x41a534
or edi, 0xffffffff
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41a3c7
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41a552
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x625c20]
test eax, eax
je 0x41a56a
push edi
call eax
jmp 0x41a47f
cmp dword [0x6243c8], 0
je 0x41a47f
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x61f640
jmp 0x41a463
mov eax, dword [0x625c20]
test eax, eax
je 0x41a59c
push 2
call eax
jmp 0x41a3c7
cmp dword [0x6243c8], 0
je 0x41a3c7
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x61f640
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
jmp 0x41a3c7
mov eax, dword [0x625c20]
test eax, eax
je 0x41a5da
push 0xb
call eax
jmp 0x41a600
cmp dword [0x6243c8], 0
je 0x41a600
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x61f640
call fcn.0040f024
push eax
call dword [0x6243c8]
add esp, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00410ca5
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004047bf
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.004047bf
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10