Function at 0x4181e0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7162
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b4
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c0], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x418c0e
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x23c], 0
push eax
xorps xmm0, xmm0
push 0
push edi
movups xmmword [ebp - 0x25c], xmm0
movups xmmword [ebp - 0x24c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x418c0e
call fcn.0043b270
test al, al
je 0x418295
push edi
push edx
push ecx
pop esp
push eax
pop esp
push esi
push edx
push esp
pop esi
push ebp
pop ebx
push esp
pop esp
push eax
pop eax
pop ebp
push ebx
push esp
push esi
pop edx
push edi
push ebp
push edx
push esp
push ecx
pop ebx
push edi
call fcn.0043ba50
test al, al
je 0x4182c4
pop ebp
push esi
push esi
push edx
push ebx
push eax
pop esi
pop esi
push ebp
push eax
push edx
push esi
push esi
push ebx
pop ebx
pop ebx
push edx
pop esi
pop ebx
push esi
pop ecx
pop ebp
push edi
pop edi
push ecx
pop edx
pop ecx
pop edi
push edi
push ecx
pop ecx
pop ebx
mov edi, dword [ebp - 0x2c0]
call fcn.0043b200
test al, al
je 0x4182e6
pop ebx
push ecx
pop esi
push ecx
push edi
pop edx
pop esp
push edx
pop eax
pop ecx
push ebx
push ebx
push ebx
push eax
push ecx
push ebx
pop esi
push edi
pop ebp
push ecx
pop ecx
pop ebx
pop esp
push ecx
push esp
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41835f
call fcn.0043b4a0
test al, al
je 0x418318
push edx
push ebp
pop esp
pop eax
pop edx
push edi
pop eax
push esi
pop ebx
push ebx
pop ecx
push ebx
pop ecx
push eax
push ebp
pop ecx
pop eax
pop esi
push ecx
push esp
push ebx
pop edi
pop esp
pop esp
push ebx
pop esi
push ebx
pop ebp
pop ecx
push edx
call fcn.0043b0b0
test al, al
je 0x418336
push esp
pop esi
push ecx
push ebp
pop esi
push ebx
pop edi
pop ecx
pop ebx
pop eax
push edx
pop edi
pop esp
push edi
pop esi
push ecx
pop ebp
pop ebp
pop esi
push ecx
push ebp
call fcn.0043b430
test al, al
je 0x418c0e
push esi
push eax
push esp
pop ebx
push ebx
push edi
push ebp
pop ebp
pop edi
pop esp
push esi
push edi
pop edx
pop esi
push edx
pop edx
push edx
pop edx
pop ebp
push eax
push edx
push ebp
push ebp
jmp 0x418c0e
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea ecx, [ebp - 0x2bc]
push 0x623880
call fcn.00404a90
mov dword [ebp - 4], 0
call fcn.0043ba50
test al, al
je 0x4183ab
pop ecx
pop esp
push eax
push esp
push ebx
push ecx
push esp
push ebx
pop esi
pop edi
pop ebp
pop edi
pop edi
pop ebx
push edi
pop edx
pop ebx
pop eax
pop esi
pop esi
push ecx
push ebx
call fcn.0043b890
test al, al
je 0x4183ca
pop esi
push ebp
pop ecx
pop eax
pop esi
push edx
pop edi
push ecx
push edx
pop esp
push esp
pop esi
pop esp
push edi
push eax
pop ecx
push ebx
pop ebx
pop esi
push edi
pop ebx
pop esi
call fcn.0043b660
test al, al
je 0x4183ed
push ebp
push eax
push esp
pop edx
pop edx
pop eax
pop esi
pop edi
pop edi
push ebx
push edx
pop ebp
pop ecx
push esi
push eax
push esp
pop ecx
pop ebx
pop ebp
pop ebx
pop edx
pop esi
pop esi
pop esp
push esi
pop ebx
call fcn.0043b5f0
test al, al
je 0x41840b
pop ebx
pop ebp
pop edi
pop eax
pop ebp
pop edx
pop ebp
push eax
push esp
push eax
push ebx
push esp
pop esp
pop edi
pop ebp
pop edx
push esp
push ebx
push eax
pop esi
pop esi
call fcn.0043ba50
test al, al
je 0x418433
pop edx
pop ebp
pop edx
pop edx
pop esp
pop ebx
push esi
push ebx
push edx
pop esi
push eax
pop edx
pop esp
push edi
pop ebx
pop esi
pop esp
pop edx
pop ecx
push esp
pop ebp
push edx
push edx
push ecx
pop edi
push ebp
push edx
push ecx
pop eax
push esi
pop ebx
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2a4]
call fcn.0041aae0
mov byte [ebp - 4], 1
call fcn.0043b740
test al, al
je 0x418478
push ecx
pop ebp
pop esp
pop ebp
pop esi
pop ecx
pop eax
push edx
push edx
push ebp
pop ebp
push ebx
push edx
pop edi
pop edx
push eax
pop edx
pop edi
push esi
pop eax
push edx
call fcn.0043b2e0
test al, al
je 0x41849b
push esp
pop ebp
pop edx
push edx
push edx
pop ecx
push edi
pop esp
pop esi
pop esi
push esi
push ecx
push ecx
push esp
push ebx
pop ecx
push esp
pop esi
push esi
push ebp
pop esp
pop eax
push edx
push edi
push esp
pop esi
call fcn.0043b5f0
test al, al
je 0x4184ba
pop ebp
push edx
pop edx
pop eax
pop eax
push esp
pop esp
pop edx
push esp
push esp
push ecx
pop ebp
pop edx
push ecx
pop eax
push edx
pop ebx
push esi
pop ecx
pop ecx
push ecx
push edi
call fcn.0043b200
test al, al
je 0x4184d8
pop ecx
pop edx
pop edi
push ecx
pop eax
push ecx
push esp
pop esi
push ebp
pop edi
push edx
pop ebp
push eax
pop edi
push ebp
pop edi
pop eax
push esp
pop edi
pop esi
push esp
mov edx, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x28c]
call fcn.0041ad60
mov byte [ebp - 4], 2
call fcn.0043b820
test al, al
je 0x418510
push edi
push ebx
pop ecx
push esi
pop ecx
push edi
push eax
pop edi
push esi
push ebx
pop esi
push ebp
pop edx
push ebp
push ecx
pop eax
push esp
pop esp
pop ebp
push eax
push esi
push eax
pop esi
pop edx
pop edx
push ebp
call fcn.0043bac0
test al, al
je 0x41852e
pop ebp
push edx
push ebx
push ebp
pop edi
push edi
push esi
push esi
push edx
push eax
pop eax
pop ebp
push esp
pop ebx
pop edx
pop edi
push esp
push ebx
pop esp
push edi
push edi
call fcn.0043b660
test al, al
je 0x418548
push ebp
pop ecx
push edi
push esp
pop ecx
pop ebp
push ebp
push esp
pop ebp
pop ebp
pop edx
push eax
pop eax
pop ebp
push esi
pop esp
pop ecx
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x274]
call fcn.0041ad60
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 3
call fcn.00420ff0
call fcn.0043ba50
test al, al
je 0x41858d
pop eax
pop esi
pop edx
pop ebp
pop eax
push ebx
pop ebx
push eax
push ecx
push esp
pop edi
push edi
push edx
pop edx
push eax
push edi
push ebx
push edx
pop edx
push ebp
pop eax
push edx
pop esi
push esi
pop ebp
push ebx
push eax
push esp
lea ecx, [ebp - 0x274]
call fcn.00420ff0
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x274]
call fcn.00405b30
test eax, eax
jne 0x41866b
call fcn.0043b2e0
test al, al
je 0x4185d9
push esi
pop esi
pop eax
pop ecx
push ecx
pop esi
pop eax
push esi
push esp
push ebp
pop ebx
push eax
push edi
push esp
pop ebx
pop esp
pop edx
push edi
pop esp
push esi
push edx
push ebx
pop edi
push eax
pop ecx
push esp
pop ecx
push ecx
pop esi
push ebx
call fcn.0043b510
test al, al
je 0x4185fb
pop esi
push eax
push esi
push edx
push ebx
pop edx
push edx
pop esi
pop esp
push ebx
pop edx
push edx
pop edi
pop edx
pop esp
push ebp
pop esi
push ebx
push ebx
push esp
pop edx
push edi
push ebp
push edi
push esp
call fcn.0043b660
test al, al
je 0x41861d
pop eax
push ebp
pop ebp
push ebp
push edi
push eax
pop esp
push ecx
push edi
push esi
push edx
pop ebx
push ebp
pop ebp
pop edx
pop ebp
push esp
pop ebx
push ecx
push eax
pop ecx
pop ebp
push eax
pop esp
push esi
cmp word [ebp - 0x220], 0
jne 0x41863e
xor ecx, ecx
lea eax, [ebp - 0x220]
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00404db0
jmp 0x4186b7
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418647
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00404db0
jmp 0x4186b7
call fcn.0043b0b0
test al, al
je 0x41868f
push esi
push esp
push ecx
pop ebp
push ecx
pop ecx
pop edi
push edx
pop edx
push ecx
pop esi
push ecx
push esp
push ecx
push esp
pop ebx
push esp
push ebp
pop ebx
push esi
pop esi
pop eax
push eax
push ebp
push ebp
push edx
push edx
mov edx, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x250]
call fcn.0041af20
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00404a10
lea ecx, [ebp - 0x250]
call fcn.00403d40
mov dword [ebp - 0x2c4], 0
call fcn.0043b430
test al, al
je 0x4186e2
push esi
push eax
push edi
push eax
push ebp
push esp
pop esi
pop esp
pop ebx
pop esp
pop ecx
push ebx
pop edx
pop ebp
push esp
push edx
push ecx
push edi
push eax
push edx
push eax
push eax
pop esp
push ecx
call fcn.0043b660
test al, al
je 0x4186ff
pop edx
pop esp
pop esp
push eax
pop esi
pop ecx
push ebx
pop esp
push esp
push esp
pop ebx
push esp
push edi
push esp
pop edi
push edx
push edx
pop ecx
push esp
pop ebp
call fcn.0043b820
test al, al
je 0x418723
pop esp
push eax
push esp
pop ecx
push esi
pop eax
pop eax
push ecx
pop ebx
pop edx
pop esp
pop ebp
push ecx
push esp
push ebx
push ecx
push eax
pop ebp
push edx
pop esi
pop edi
push edi
push ecx
pop edx
push ecx
pop eax
pop eax
xor eax, eax
mov dword [ebp - 0x224], 7
push eax
push 0x623880
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.00404db0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x238]
call fcn.00404eb0
call fcn.0043b5f0
test al, al
je 0x41878b
push esi
push edx
push edx
push ecx
pop eax
push ebp
push esp
pop edx
pop edi
push eax
push edx
pop ecx
pop ecx
push edi
push ebx
pop edx
pop esi
push esi
push edi
pop edx
pop eax
push eax
push eax
call fcn.0043b660
test al, al
je 0x4187ab
pop esi
push ebp
pop ebx
push ecx
pop esp
pop ebx
push esi
push ecx
pop ebp
pop esi
pop edi
pop ebp
push esp
pop esi
pop edx
push ebp
push esp
push ecx
pop edx
pop esi
pop esp
pop eax
pop ebx
call fcn.0043bba0
test al, al
je 0x4187c7
pop esi
push eax
pop edx
pop esp
push edi
push ebp
push eax
push esp
pop edx
push esp
pop esi
pop esi
pop ebp
pop ebx
pop eax
pop eax
pop edi
pop ebx
push esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040d990
push 4
push 0x625bac
lea ecx, [ebp - 0x238]
call fcn.0040d860
mov eax, dword [ebp - 0x2c4]
test eax, eax
jle 0x418840
cdq
lea ecx, [ebp - 0x250]
push edx
push eax
call fcn.0041a090
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.0040d990
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x418840
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00405130
cmp dword [ebp - 0x224], 8
lea esi, [ebp - 0x238]
cmovae esi, dword [ebp - 0x238]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x418990
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x23c], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x25c], xmm0
movups xmmword [ebp - 0x24c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x418990
call fcn.0043b7b0
test al, al
je 0x4188b9
pop esi
pop ecx
pop edi
push ebx
pop ecx
push edi
push eax
pop edi
push ebp
push edi
push eax
pop eax
push esp
push edx
push ebx
pop eax
pop edi
push ebp
pop ebp
push ecx
pop edx
call fcn.0043b350
test al, al
je 0x4188d5
push esp
pop esp
push edi
pop ecx
pop ebp
push esp
push esp
pop eax
push esi
push esi
push ebp
pop esp
pop ebx
pop ebx
push edi
pop esp
push esp
pop edi
push edx
call fcn.0043b9e0
test al, al
je 0x4188fc
push edx
push edi
pop eax
pop esp
push edi
pop ebx
pop esi
pop ebp
push esi
pop edi
push esp
push ecx
pop eax
push eax
push ecx
push ebp
push ecx
push ebp
pop esp
push esp
pop edx
pop esp
pop ebp
pop eax
pop esp
pop ebx
pop esi
push edi
push edi
pop ebp
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418990
call fcn.0043b660
test al, al
je 0x418936
pop eax
push edx
push edi
pop esi
push edx
push esi
push edi
push esi
push eax
push eax
pop esp
pop ebp
push edi
pop ecx
push esp
pop esp
pop esi
push ebx
call fcn.0043b200
test al, al
je 0x41894f
push ebx
pop esi
pop esi
push ebp
pop edx
push ecx
pop ebx
pop eax
pop ecx
pop esp
pop esi
pop ecx
pop edx
push ebp
pop edx
push edi
mov eax, dword [ebp - 0x2c4]
cmp eax, 0xa
jge 0x418b21
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x418723
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00405130
jmp 0x418723
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
push dword [ebp - 0x2c0]
call fcn.0058836f
add esp, 8
call fcn.0043b970
test al, al
je 0x4189d3
pop edx
pop ebx
pop esi
push edi
pop edi
push ecx
pop edx
push ebp
pop eax
pop ebp
push edx
push eax
push eax
pop edx
push edi
pop esp
pop eax
push ebx
pop edi
pop edx
push edx
pop eax
push esi
call fcn.0043b430
test al, al
je 0x4189f6
pop esp
push ebx
push eax
pop edi
pop ecx
pop edx
push ebp
push eax
pop ecx
push edi
pop eax
pop ebx
push edi
pop ecx
push ebx
pop edi
push eax
pop ecx
push edi
pop esp
push ebx
pop edi
push edx
pop edi
push edx
pop esi
cmp dword [ebp - 0x224], 8
lea esi, [ebp - 0x238]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmovae esi, dword [ebp - 0x238]
push esi
call edi
test eax, eax
jle 0x418a6a
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x23c], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x25c], xmm0
movups xmmword [ebp - 0x24c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x418a6a
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 5
cmovae eax, dword [ebp - 0x238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp - 0x2c0]
push esi
call edi
test eax, eax
jle 0x418b21
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x23c], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x25c], xmm0
movups xmmword [ebp - 0x24c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x418b21
call fcn.0043bb30
test al, al
je 0x418ad3
push ecx
pop esp
push eax
pop ebp
push esi
pop eax
pop esp
push eax
push esi
pop ecx
pop eax
push ebp
pop eax
pop esi
push edx
pop edi
pop ebp
push edx
push eax
pop ebx
pop edx
pop edx
push esi
push esi
pop edx
pop ebp
pop ebx
call fcn.0043b0b0
test al, al
je 0x418af3
pop esp
push eax
push esi
push esi
push ebp
push esi
pop eax
pop ecx
pop eax
push edi
push edi
pop ebx
push esp
pop esp
push esi
pop ecx
push esi
push esi
push ebx
pop esi
push edx
pop esp
pop eax
call fcn.0043b040
test al, al
je 0x418b11
push ebp
push ecx
pop esp
push ecx
pop ebp
push ecx
push esp
push ecx
pop esp
pop edi
push edi
pop ebp
push edi
push esp
pop ebx
push ecx
push edi
pop ebx
pop eax
pop ebx
push ebp
push 5
push 0
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x418b3f
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00405130
mov eax, dword [ebp - 0x260]
cmp eax, 8
jb 0x418b5d
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x264], 0
cmp eax, 8
jb 0x418b98
inc eax
lea ecx, [ebp - 0x28c]
push eax
push dword [ebp - 0x28c]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x27c], 0
cmp eax, 8
jb 0x418bd3
inc eax
lea ecx, [ebp - 0x2a4]
push eax
push dword [ebp - 0x2a4]
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x294], 0
cmp eax, 8
jb 0x418c0e
inc eax
lea ecx, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2bc]
call fcn.00405130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00579ec9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret