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

Disassembly:
mov eax, 0x41b45f
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 0x41aa5a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41aa5a
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x41a782
push edi
lea ecx, [ebp - 0x5c]
call fcn.00404792
mov byte [ebp - 4], 3
push 2
pop ebx
jmp 0x41a79b
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push dword [esi + 0x14]
push eax
call fcn.004168a3
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.00411157
mov dword [ebp - 4], 3
test bl, 4
je 0x41a7c1
and ebx, 0xfffffffb
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call fcn.004047bf
mov dword [ebp - 4], 1
test bl, 2
je 0x41a7db
and ebx, 0xfffffffd
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], ebx
call fcn.004047bf
test edi, edi
jne 0x41a84e
test byte [esi], 0x10
je 0x41a84e
cmp dword [ebp - 0x34], edi
je 0x41a7f5
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x41a7f5
lea edi, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
add eax, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x41a803
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00417b3e
pop ecx
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x41a81b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00416cc6
add esp, 0xc
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x44]
call fcn.00411157
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 0x41a88b
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.004113bf
or ebx, 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004047bf
mov eax, esi
jmp 0x41aad3
cmp dword [ebp - 0x34], 0
je 0x41aa19
cmp dword [esi + 4], 0
je 0x41a856
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41a8a7
lea eax, [ebp - 0x44]
push eax
call fcn.0041727a
pop ecx
mov ecx, dword [0x63157c]
test ecx, ecx
je 0x41a8db
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41a8c4
lea eax, [ebp - 0x44]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call ecx
jmp 0x41a906
cmp dword [0x6303c8], 0
je 0x41a903
push 0x14
pop eax
call fcn.0040171b
push esp
push 0x62b5cc
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
jmp 0x41a90e
or eax, 0xffffffff
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x41a92d
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 0x41a87c
xor ecx, ecx
test dword [esi], 0x1000
push 0xfffffffffffffffe
mov dword [ebp + 0x14], ecx
pop edi
je 0x41a99e
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.00418711
mov esi, dword [ebp + 0xc]
add esp, 0xc
test al, al
je 0x41a990
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 0x41a98d
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp dword [ebp + 0x14], eax
jne 0x41a98d
xor edi, edi
jmp 0x41a990
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004112ae
jmp 0x41a9c6
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 0x41a9c0
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 4]
jne 0x41a9c0
xor edi, edi
jmp 0x41a9c3
or edi, 0xffffffff
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41a856
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x41a9e1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x6306a4]
test eax, eax
je 0x41a9f9
push edi
call eax
jmp 0x41a90e
cmp dword [0x6303c8], 0
je 0x41a90e
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x62b640
jmp 0x41a8f2
mov eax, dword [0x6306a4]
test eax, eax
je 0x41aa2b
push 2
call eax
jmp 0x41a856
cmp dword [0x6303c8], 0
je 0x41a856
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x62b640
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
jmp 0x41a856
mov eax, dword [0x6306a4]
test eax, eax
je 0x41aa69
push 0xb
call eax
jmp 0x41aa8f
cmp dword [0x6303c8], 0
je 0x41aa8f
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x62b640
call fcn.0040f4b6
push eax
call dword [0x6303c8]
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.00411137
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