Function at 0x40ac60
Capabilities:
Delete file
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x453417
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x468400]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468400]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x134]
mov eax, dword [esp + 0x138]
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
mov byte [ebx + 0x145], 0
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0x12c], edi
mov eax, dword [eax]
mov ecx, dword [eax]
cmp ecx, 0x4d4f4449
je 0x40ad4e
cmp ecx, 0x41444446
je 0x40ad4e
cmp ecx, 0x44454c46
je 0x40ad4e
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0xb8]
push 0x45b760
push eax
call fcn.00436790
mov edx, dword [ebx + 4]
add esp, 0xc
push 0x10
push edi
lea ecx, [esp + 0xbc]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x94], 0x10
jb 0x40ad47
mov eax, dword [esp + 0x80]
push eax
call fcn.00419a12
add esp, 4
xor al, al
jmp 0x40b40c
push 0xffffffffffffffff
push edi
push edx
lea ecx, [esp + 0x88]
lea esi, [eax + 0xc]
call fcn.004043f0
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad66
sub eax, edi
push eax
push esi
lea eax, [esp + 0x84]
call fcn.00408820
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edi, dword [edx + 8]
add edi, esi
lea eax, [edi + 4]
xor ebp, ebp
cmp dword [esp + 0x94], 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], edi
jae 0x40adad
lea eax, [esp + 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx]
cmp eax, 0x4d4f4449
jne 0x40aebc
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x40ade6
lea eax, [esp + 0x80]
push 0x45b774
push eax
call fcn.00436b9c
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b1b5
push 4
push str..tmp
lea eax, [esp + 0x84]
call fcn.00408820
mov eax, dword [esp + 0x80]
mov ebp, 0x10
cmp dword [esp + 0x94], ebp
jae 0x40ae2d
lea eax, [esp + 0x80]
push 0x80
push eax
call esi
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebp
jae 0x40ae4c
lea eax, [esp + 0x80]
push 0x45b774
push eax
call fcn.00436b9c
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b1b5
mov eax, dword [esp + 0x80]
mov esi, 0x10
cmp dword [esp + 0x94], esi
jae 0x40ae80
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xb8]
push 0x45b778
push eax
call fcn.00436790
mov edx, dword [ebx + 4]
add esp, 0xc
push esi
push 0
lea ecx, [esp + 0xbc]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x40b3f1
lea edi, [esp + 0x7c]
cmp eax, 0x44454c46
jne 0x40af85
lea ebx, [esp + 0x50]
call fcn.00404670
mov ecx, dword [eax]
mov esi, dword [eax + 4]
lea ebx, [esp + 0x74]
mov dword [esp + 0x2c], ecx
call fcn.00404620
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], edx
cmp eax, esi
je 0x40af00
cmp byte [eax], 0x5c
jne 0x40aefb
mov byte [eax], 0x2f
inc eax
cmp eax, esi
jne 0x40aef3
mov eax, dword [esp + 0x80]
mov esi, 0x10
cmp dword [esp + 0x94], esi
jae 0x40af1c
lea eax, [esp + 0x80]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x40af3f
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x40af5d
lea eax, [esp + 0x80]
mov esi, dword [esp + 0x20]
push eax
push 0x45b7b0
mov eax, esi
call fcn.0040c7c0
add esp, 8
push esi
lea ebx, [esp + 0x80]
call fcn.0040c8c0
mov ebx, esi
jmp 0x40b1b1
lea ebx, [esp + 0x74]
call fcn.00404670
mov ecx, dword [eax]
mov esi, dword [eax + 4]
lea ebx, [esp + 0x50]
lea edi, [esp + 0x7c]
mov dword [esp + 0x2c], ecx
call fcn.00404620
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], edx
cmp eax, esi
je 0x40afbe
cmp byte [eax], 0x5c
jne 0x40afb9
mov byte [eax], 0x2f
inc eax
cmp eax, esi
jne 0x40afb1
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x84]
push ecx
xor eax, eax
mov byte [esp + 0x20], 0x2f
call fcn.0040e060
mov edi, eax
cmp edi, 0xffffffff
je 0x40b112
mov byte [esp + 0x14], 0x2f
mov ebp, 0x10
push 1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x84]
lea eax, [edi + 1]
push ecx
call fcn.0040e060
mov edi, eax
cmp edi, 0xffffffff
je 0x40b112
push edi
xor ecx, ecx
lea esi, [esp + 0x9c]
lea edx, [esp + 0x80]
call fcn.0040d860
mov byte [esp + 0x12c], 1
push 1
xor ebx, ebx
mov esi, 0xf
push 0x45b7c8
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00404b10
mov byte [esp + 0x12c], 2
push 1
push 0x45b5ac
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00404b10
lea edx, [esp + 0x58]
push edx
lea ebx, [esp + 0x38]
lea eax, [esp + 0x9c]
mov byte [esp + 0x130], 3
call fcn.00411c00
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x40b0a8
mov eax, dword [esp + 0x38]
push eax
call fcn.00419a12
add esp, 4
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x70], ebp
jb 0x40b0c9
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00419a12
add esp, 4
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], ebp
jae 0x40b0e0
lea eax, [esp + 0x9c]
push eax
call fcn.00438562
add esp, 4
mov byte [esp + 0x12c], bl
cmp dword [esp + 0xb0], ebp
jb 0x40afee
mov edx, dword [esp + 0x9c]
push edx
call fcn.00419a12
add esp, 4
jmp 0x40afee
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x40b12a
lea eax, [esp + 0x80]
push 0x45b7cc
push eax
call fcn.00436b9c
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b1ad
mov eax, dword [esp + 0x80]
mov esi, 0x10
cmp dword [esp + 0x94], esi
jae 0x40b15a
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xb8]
push 0x45b7d0
push eax
call fcn.00436790
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
add esp, 0xc
push esi
push 0
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x94], esi
jb 0x40ad47
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00419a12
add esp, 4
xor al, al
jmp 0x40b40c
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 0x4d4f4449
jne 0x40b304
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
lea esi, [ebx + 0xd4]
push ecx
mov ecx, esi
call fcn.004043f0
cmp dword [esi + 0x18], 0x10
jb 0x40b1ec
mov esi, dword [esi + 4]
jmp 0x40b1ef
add esi, 4
push esi
push 0x45b800
mov eax, ebx
call fcn.0040c7c0
add esp, 8
push ebx
call fcn.0040c870
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x28]
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.0040a610
push ebp
test al, al
jne 0x40b253
call fcn.004375bd
add esp, 4
cmp dword [esp + 0x94], 0x10
jb 0x40ad47
mov edx, dword [esp + 0x80]
push edx
call fcn.00419a12
add esp, 4
xor al, al
jmp 0x40b40c
call fcn.00438067
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add esp, 4
push edx
push ebp
call fcn.00437876
add esp, 4
push eax
call fcn.00438546
add esp, 8
mov esi, 0x10
test ebp, ebp
je 0x40b289
push ebp
call fcn.004375bd
add esp, 4
mov ecx, dword [edi]
add ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
cmp byte [ebx + 0x145], 0
je 0x40b3eb
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x40b2b9
lea eax, [esp + 0x80]
push 0x45b774
push eax
call fcn.00436b9c
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b394
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x40b2e8
lea eax, [esp + 0x80]
push eax
push 0x45b854
mov eax, ebx
call fcn.0040c7c0
add esp, 8
cmp dword [esp + 0x94], esi
jmp 0x40ad35
cmp eax, 0x41444446
jne 0x40b277
mov eax, dword [esp + 0x80]
mov esi, 0x10
cmp dword [esp + 0x94], esi
jae 0x40b32b
lea eax, [esp + 0x80]
push eax
push str._n_n
mov eax, ebx
call fcn.0040c7c0
add esp, 8
push ebx
call fcn.0040c870
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push ebp
push eax
push 1
push ecx
call fcn.004387c6
add esp, 0x10
cmp eax, dword [edi]
je 0x40b389
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push 0
push 0x69
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x45b830
mov eax, ebx
call fcn.0040c7c0
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.004037f0
xor al, al
jmp 0x40b40c
push ebx
call fcn.0040c870
jmp 0x40b27c
lea ecx, [esp + 0x7c]
push ecx
mov edi, str..csv
lea esi, [esp + 0x9c]
call fcn.00408580
add esp, 4
push ebp
push ebx
mov ecx, esi
mov byte [esp + 0x134], 4
call fcn.0040cbb0
push ebp
mov byte [esp + 0x18], al
call fcn.004375bd
add esp, 4
mov ecx, esi
call fcn.004037f0
cmp byte [esp + 0x14], 0
jne 0x40b3e6
lea ecx, [esp + 0x7c]
call fcn.004037f0
xor al, al
jmp 0x40b40c
mov esi, 0x10
push ebx
call fcn.0040c870
cmp dword [esp + 0x94], esi
jb 0x40b40a
mov edx, dword [esp + 0x80]
push edx
call fcn.00419a12
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00436724
add esp, 0x11c
ret 0xc