Function at 0x41188c
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x43ce60
call fcn.0041aa98
sub esp, 0x700
mov eax, dword [str.D__4]
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x6a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x298]
push eax
xor esi, esi
push esi
push 0x441dd8
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x6bc], esi
call fcn.0043990e
mov edi, dword [ebp + 8]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x6c4]
push ecx
lea ecx, [ebp - 0x6b8]
push ecx
push dword [edi]
push 0x440aac
push eax
call fcn.0040bc82
add esp, 0x14
test eax, eax
je 0x411d45
cmp dword [edi + 0x24c], 4
je 0x411a48
lea ecx, [ebp - 0x6f8]
call fcn.00435c35
push esi
push 0x9001
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 4], esi
call fcn.00435c4b
test eax, eax
je 0x411a34
push dword [ebp - 0x6c4]
lea ecx, [ebp - 0x6f8]
push dword [ebp - 0x6b8]
call fcn.00435dc2
lea ecx, [ebp - 0x6f8]
call fcn.00435fd0
lea eax, [edi + 4]
push eax
add edi, 0x44
push edi
lea eax, [ebp - 0x4a0]
push str._s_s
push eax
call fcn.0041b513
add esp, 0x10
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.00410a35
mov edi, eax
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x6b0]
mov byte [ebp - 4], 1
call fcn.00410a35
mov ebx, eax
mov ecx, dword [edi]
cmp ecx, esi
mov byte [ebp - 4], 2
je 0x4119c4
call fcn.004109ab
mov edi, eax
jmp 0x4119c6
xor edi, edi
mov ecx, dword [ebx]
cmp ecx, esi
je 0x4119d3
call fcn.004109ab
jmp 0x4119d5
xor eax, eax
push edi
push eax
call fcn.0040bbaa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6b0]
cmp ecx, esi
mov bl, al
je 0x4119f5
call fcn.00410ca5
mov dword [ebp - 0x6b0], esi
mov ecx, dword [ebp - 0x6b4]
cmp ecx, esi
mov byte [ebp - 4], 0
je 0x411a08
call fcn.00410ca5
test bl, bl
je 0x411a16
mov dword [ebp - 0x6bc], 1
lea eax, [ebp - 0x4a0]
push eax
mov ecx, 0x4531f4
call fcn.004300f7
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6f8]
call fcn.0043600c
jmp 0x411d39
mov eax, dword [ebp - 0x6b8]
mov dword [ebp - 0x6d4], eax
mov dword [ebp - 0x6d8], eax
mov eax, dword [ebp - 0x6c4]
cmp eax, 1
mov dword [ebp - 0x6dc], 0x441be0
mov dword [ebp - 0x6d0], eax
jl 0x411d39
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0xf
pop ecx
xor eax, eax
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x6dc]
call fcn.0040cc16
push 0x40
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x6dc]
call fcn.0040cc16
push 8
lea eax, [ebp - 0x6e4]
push eax
lea ecx, [ebp - 0x6dc]
call fcn.0040cc16
push dword [ebp - 0x6e4]
call fcn.0043192c
pop ecx
push dword [ebp - 0x6e4]
lea ecx, [ebp - 0x6dc]
push eax
mov dword [ebp - 0x6b4], eax
call fcn.0040cc16
lea ecx, [ebp - 0x70c]
call fcn.00435c35
push 3
pop edi
lea eax, [ebp - 0x298]
push eax
push esi
push 0x441dd8
lea eax, [ebp - 0x6a8]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 0x9001
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x70c]
call fcn.00435c4b
test eax, eax
je 0x411d03
push dword [ebp - 0x6e4]
lea ecx, [ebp - 0x70c]
push dword [ebp - 0x6b4]
call fcn.00435dc2
lea ecx, [ebp - 0x70c]
call fcn.00435fd0
call dword [0x4510b0]
mov dword [ebp - 0x6b0], eax
lea eax, [ebp - 0x4f]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, edi
and eax, 0xfffffffc
call fcn.0041b590
mov eax, esp
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x4f]
push esi
push ecx
push eax
call fcn.00410872
mov edi, dword [ebp + 8]
push eax
add edi, 0x44
push edi
lea eax, [ebp - 0x4a0]
push str._s_s
push eax
call fcn.0041b513
add esp, 0xc
lea eax, [ebp - 0x4a0]
mov ecx, esp
mov dword [ebp - 0x6c0], esp
push eax
call fcn.0040630c
call fcn.0040c786
pop ecx
lea eax, [ebp - 0x90]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0041b590
mov eax, esp
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x90]
push esi
push ecx
push eax
call fcn.00410872
mov dword [ebp - 0x6c0], eax
lea eax, [ebp - 0x4f]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0041b590
mov eax, esp
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x4f]
push esi
push ecx
push eax
call fcn.00410872
push dword [ebp - 0x6c0]
push eax
push edi
lea eax, [ebp - 0x4a0]
push 0x441dbc
push eax
call fcn.0041b513
add esp, 0x14
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x6c8]
call fcn.00410a35
mov esi, eax
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x6cc]
mov byte [ebp - 4], 4
call fcn.00410a35
mov edi, eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [ebp - 4], 5
je 0x411c80
call fcn.004109ab
mov esi, eax
jmp 0x411c82
xor esi, esi
mov ecx, dword [edi]
test ecx, ecx
je 0x411c8f
call fcn.004109ab
jmp 0x411c91
xor eax, eax
push esi
push eax
call fcn.0040bbaa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6cc]
test ecx, ecx
mov byte [ebp - 0x6a9], al
je 0x411cb6
call fcn.00410ca5
and dword [ebp - 0x6cc], 0
mov ecx, dword [ebp - 0x6c8]
test ecx, ecx
mov byte [ebp - 4], 3
je 0x411cd0
call fcn.00410ca5
and dword [ebp - 0x6c8], 0
cmp byte [ebp - 0x6a9], 0
je 0x411ce3
mov dword [ebp - 0x6bc], 1
lea eax, [ebp - 0x4a0]
push eax
mov ecx, 0x4531f4
call fcn.004300f7
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push dword [ebp - 0x6b4]
call fcn.00431927
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x70c]
call fcn.0043600c
mov eax, dword [ebp - 0x6d0]
sub eax, dword [ebp - 0x6d8]
add eax, dword [ebp - 0x6d4]
cmp eax, 1
jge 0x411a7f
push dword [ebp - 0x6b8]
call fcn.00431927
pop ecx
mov eax, dword [ebp - 0x6bc]
lea esp, [ebp - 0x718]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041ab51
pop edi
pop esi
pop ebx
leave
ret