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

Disassembly:
push 0xffffffffffffffff
push 0x44e81e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x45e200]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e200]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd4]
mov edi, ecx
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov esi, edx
call fcn.0041fad0
lea edx, [esp + 0x18]
push edx
xor eax, eax
push esi
mov dword [esp + 0xd4], eax
push edi
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
call fcn.00412750
test eax, eax
je 0x412d80
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [edi + 4]
push ebx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00404420
mov eax, esi
mov byte [esp + 0xcc], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412b10
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.00403330
mov eax, dword [esp + 0x48]
mov ebp, 0x10
cmp dword [esp + 0x5c], ebp
jae 0x412b37
lea eax, [esp + 0x48]
push 0x455808
push eax
call fcn.00449c0a
mov edi, dword [esp + 0x28]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x412b66
mov eax, dword [esp + 0x18]
push esi
push 1
push eax
push edi
call fcn.00449d83
push esi
call fcn.00446406
add esp, 0x14
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x412b74
lea edx, [esp + 0x48]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412b80
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xa8]
call fcn.004048c0
lea ecx, [esp + 0x60]
push ecx
call fcn.0041fc80
test al, al
mov eax, dword [esp + 0x48]
jne 0x412beb
cmp dword [esp + 0x5c], ebp
jae 0x412bb3
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00432a62
add esp, 4
cmp dword [esp + 0x5c], ebp
jb 0x412bd6
mov edx, dword [esp + 0x48]
push edx
call fcn.0043279a
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jmp 0x412d80
cmp dword [esp + 0x5c], ebp
jae 0x412bf5
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.00432a62
add esp, 4
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x5c], ebp
jb 0x412c1f
mov eax, dword [esp + 0x48]
push eax
call fcn.0043279a
add esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x412d80
mov eax, dword [esp + 0x9c]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], eax
jle 0x412d80
jmp 0x412c50
push ebp
lea edi, [esp + 0x64]
call fcn.004201f0
mov edi, 0xf
mov ecx, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x412c70
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004048c0
mov byte [esp + 0xcc], 2
cmp dword [esp + 0x3c], ebx
jne 0x412cb6
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x40], 0x10
jb 0x412cad
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0043279a
add esp, 4
mov dword [esp + 0x40], edi
jmp 0x412d6d
mov eax, dword [esp + 0x2c]
mov edi, 0x10
cmp dword [esp + 0x40], edi
jae 0x412cc9
lea eax, [esp + 0x2c]
push eax
call fcn.00432a83
mov esi, eax
add esp, 4
cmp esi, 0x3e8
jae 0x412cf0
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x40], edi
jb 0x412d65
mov edx, dword [esp + 0x2c]
push edx
jmp 0x412d5d
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jae 0x412cfe
lea edx, [esp + 0x2c]
push str.type
lea eax, [esp + 0x64]
push eax
call fcn.004202a0
push eax
call fcn.00432a83
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
add esp, 4
push esi
push eax
mov eax, dword [edx]
call eax
cmp eax, ebx
jne 0x412d3a
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x40], edi
jb 0x412d65
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x412d5d
mov edx, dword [esp + 0x24]
push eax
push edx
mov ecx, ebp
lea edx, [esp + 0x68]
call fcn.004149c0
mov byte [esp + 0xcc], bl
cmp dword [esp + 0x40], edi
jb 0x412d65
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043279a
add esp, 4
mov dword [esp + 0x40], 0xf
inc ebp
cmp ebp, dword [esp + 0x18]
mov byte [esp + 0x2c], bl
mov dword [esp + 0x3c], ebx
jl 0x412c50
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0041fbd0
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0043270e
add esp, 0xbc
ret 4