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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45034c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x118c
call fcn.00431870
mov eax, dword [0x46aa78]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x1194], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], edi
mov dword [esp + 0x11a4], edi
je 0x409cdf
push 0x456804
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00407ac0
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x11b0], 1
call fcn.00402270
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x11a4], 0
jb 0x409ce4
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00446915
add esp, 4
jmp 0x409ce4
mov esi, 0x10
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
push edx
lea ecx, [esp + 0x78]
call fcn.00407640
mov eax, dword [ebx + 0x70]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x40a042
jmp 0x409d10
cmp dword [esp + 0x84], esi
mov edi, dword [esp + 0x70]
jae 0x409d21
lea edi, [esp + 0x70]
cmp dword [ecx + 0x30], esi
jb 0x409d2b
mov esi, dword [ecx + 0x1c]
jmp 0x409d2e
lea esi, [ecx + 0x1c]
test esi, esi
je 0x40a023
cmp byte [esi], 0
je 0x40a023
test edi, edi
je 0x40a023
cmp byte [edi], 0
je 0x40a023
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a023
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.00418cf0
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0xc], ebx
je 0x40a023
push edi
lea ecx, [esp + 0x34]
call fcn.00402620
push 1
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x11b4], 2
call fcn.00412350
add esp, 0x10
mov eax, dword [esp + 0x48]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x11a4], 4
jb 0x409dcd
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00446915
add esp, 4
mov eax, dword [esp + 0x68]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
cmp eax, edi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x28], edx
jae 0x409e04
lea eax, [esp + 0x54]
push 0x11000
push eax
push ebx
call fcn.004181e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x409e38
push ebx
call fcn.00418b30
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x11a4], 0
call fcn.00419910
jmp 0x40a023
cmp dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
jae 0x409e46
lea eax, [esp + 0x54]
push 8
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
call fcn.004185d0
add esp, 0x10
test eax, eax
je 0x409e67
push esi
call fcn.00417e50
push ebx
jmp 0x409ef9
mov byte [esp + 0x88], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
push 0x104
lea edx, [esp + 0x8c]
push edi
push edx
call fcn.00430cf0
add esp, 0xc
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, byte [esp + 0x88]
test al, al
je 0x409ed1
lea ecx, [esp + 0x88]
push ecx
call fcn.00411d50
add esp, 4
test al, al
jne 0x409ed1
push esi
call fcn.00417e50
push ebx
jmp 0x409ef9
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x409f17
push esi
call fcn.00417e50
mov edx, dword [esp + 0x10]
push edx
call fcn.00418b30
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x11a4], 0
call fcn.00419910
jmp 0x40a023
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x409fba
mov byte [esp + 0x190], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x191]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0
push esi
stosb byte es:[edi], al
call fcn.00418460
push 0x1000
lea eax, [esp + 0x1a0]
push eax
push esi
call fcn.00417f90
mov edi, eax
add esp, 0x18
test edi, edi
je 0x409fba
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x19c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a07d
cmp dword [esp + 0x18], edi
jne 0x40a07d
push esi
call fcn.004181b0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, ecx
jge 0x409fba
push 0x1000
lea eax, [esp + 0x194]
push eax
push esi
call fcn.00417f90
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x409f64
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00417e50
mov edx, dword [esp + 0x10]
push edx
call fcn.00418b30
mov esi, dword [esp + 0x2c]
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x11a4], 0
call fcn.00419910
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1c], esi
jne 0x40a019
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
push 0
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [edx + 0x10]
test al, al
je 0x40a019
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edi + 0x20]
je 0x40a0ad
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.004074c0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx + 0x70]
mov esi, 0x10
jne 0x409d10
cmp dword [esp + 0x84], esi
jb 0x40a058
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00446915
add esp, 4
xor al, al
mov ecx, dword [esp + 0x119c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1194]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.00417e50
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00418b30
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov byte [esp + 0x11a4], 0
call fcn.00419910
jmp 0x40a023
cmp dword [esp + 0x84], 0x10
jb 0x40a0c4
mov eax, dword [esp + 0x70]
push eax
call fcn.00446915
add esp, 4
mov al, 1
jmp 0x40a05a