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

Disassembly:
sub esp, 0x438
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x43c]
mov ecx, dword [esp + 0x440]
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x240]
mov dword [esp + 0x30], eax
or eax, 0xffffffff
push edx
xor edi, edi
xor ebx, ebx
push 0x104
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x13c]
push eax
push edi
push 0x453aec
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp dword [0x464ad8], edi
mov dword [esp + 0x20], edi
jle 0x41550d
xor esi, esi
mov dword [esp + 0x2c], esi
jmp 0x4151c2
xor edi, edi
mov edx, dword [0x464c00]
mov eax, dword [esi + edx + 0x5a4]
add esi, edx
cmp eax, edi
mov dword [esp + 0x34], esi
je 0x4151e5
mov ebp, dword [eax + 0x104]
mov dword [esp + 0x24], ebp
jmp 0x4151eb
mov dword [esp + 0x24], edi
mov ebp, edi
mov eax, dword [esi + 0x910]
cmp eax, edi
je 0x41520b
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4151f8
sub eax, edx
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x41520f
mov dword [esp + 0x1c], edi
cmp ebp, 1
jge 0x41521d
cmp edi, 1
jl 0x41536c
cmp dword [esp + 0x14], 0
jge 0x415242
mov eax, dword [esp + 0x30]
push 0x1000
push eax
call fcn.0040a330
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jl 0x4153f2
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x18], 0xffffffff
jle 0x4152a9
push ebx
lea ecx, [esp + 0x140]
push ecx
push esi
call fcn.00414220
add esp, 0xc
test eax, eax
jne 0x415409
push eax
lea edx, [esp + 0x140]
push edx
call fcn.0040a330
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x18], esi
jl 0x4153e8
push 2
push ebx
push esi
call fcn.0040a3a0
push 0
push 0
push esi
mov ebx, eax
call fcn.0040a3a0
add esp, 0x18
test eax, eax
jne 0x4153e8
add edi, ebx
lea ebp, [edi + 0xc]
push ebp
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x41544b
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4152ff
cmp dword [esp + 0x24], 0
jle 0x4152ee
push ebx
push esi
push eax
call fcn.0040a3c0
add esp, 0xc
cmp eax, ebx
jne 0x41544b
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a380
add esp, 4
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415323
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x910]
push ecx
lea edx, [ebx + esi]
push edx
call fcn.0043bed0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebp
push esi
push edx
mov dword [edi + esi], ecx
mov dword [edi + esi + 4], ebx
mov dword [edi + esi + 8], eax
call fcn.0040a3f0
add esp, 0xc
cmp eax, ebp
jne 0x41544b
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
add dword [esp + 0x28], 1
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add eax, 1
add esi, 0x1008
cmp eax, dword [0x464ad8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
jl 0x4151c0
test ebx, ebx
jle 0x41550d
mov ecx, dword [str.BUNDLEDMARKUPCOUNT]
push ebx
push ecx
lea edx, [esp + 0x44]
push str._s_06d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x4c]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x4153c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4153c0
mov edi, dword [esp + 0x14]
sub eax, edx
mov esi, eax
push esi
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040a3f0
add esp, 0xc
cmp eax, esi
je 0x4154eb
mov dword [esp + 0x10], 2
jmp 0x415471
push 0xaf
call fcn.0040ab70
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x415471
mov eax, dword [esp + 0x20]
add eax, 1
push eax
lea ecx, [esp + 0x348]
push ecx
push 0xb0
call fcn.00406080
add esp, 8
push eax
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00406270
add esp, 0x14
mov dword [esp + 0x10], 1
jmp 0x415471
test esi, esi
mov dword [esp + 0x10], 2
je 0x415471
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jle 0x415483
push eax
call fcn.0040a380
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jle 0x415495
push eax
call fcn.0040a380
add esp, 4
cmp byte [esp + 0x13c], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x4154af
lea edx, [esp + 0x13c]
push edx
call esi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4154be
mov eax, dword [esp + 0x30]
push eax
call esi
cmp edi, 2
jne 0x4154d0
push 0xae
call fcn.0040ab70
add esp, 4
mov ecx, dword [esp + 0x444]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b76b
add esp, 0x438
ret
push edi
call fcn.0040a380
add esp, 4
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x41550d
mov dword [esp + 0x10], 2
jmp 0x415483
mov ecx, dword [esp + 0x38]
mov dword [ecx], ebx
jmp 0x415471