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

Disassembly:
sub esp, 0x438
mov eax, dword [0x4630b0]
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 [0x464a98], edi
mov dword [esp + 0x20], edi
jle 0x4157ad
xor esi, esi
mov dword [esp + 0x2c], esi
jmp 0x415462
xor edi, edi
mov edx, dword [0x464bc0]
mov eax, dword [esi + edx + 0x5a4]
add esi, edx
cmp eax, edi
mov dword [esp + 0x34], esi
je 0x415485
mov ebp, dword [eax + 0x104]
mov dword [esp + 0x24], ebp
jmp 0x41548b
mov dword [esp + 0x24], edi
mov ebp, edi
mov eax, dword [esi + 0x910]
cmp eax, edi
je 0x4154ab
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415498
sub eax, edx
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x4154af
mov dword [esp + 0x1c], edi
cmp ebp, 1
jge 0x4154bd
cmp edi, 1
jl 0x41560c
cmp dword [esp + 0x14], 0
jge 0x4154e2
mov eax, dword [esp + 0x30]
push 0x1000
push eax
call fcn.0040a5e0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jl 0x415692
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x18], 0xffffffff
jle 0x415549
push ebx
lea ecx, [esp + 0x140]
push ecx
push esi
call fcn.004144c0
add esp, 0xc
test eax, eax
jne 0x4156a9
push eax
lea edx, [esp + 0x140]
push edx
call fcn.0040a5e0
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x18], esi
jl 0x415688
push 2
push ebx
push esi
call fcn.0040a650
push 0
push 0
push esi
mov ebx, eax
call fcn.0040a650
add esp, 0x18
test eax, eax
jne 0x415688
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 0x4156eb
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x41559f
cmp dword [esp + 0x24], 0
jle 0x41558e
push ebx
push esi
push eax
call fcn.0040a670
add esp, 0xc
cmp eax, ebx
jne 0x4156eb
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a630
add esp, 4
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4155c3
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x910]
push ecx
lea edx, [ebx + esi]
push edx
call fcn.0043c200
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.0040a6a0
add esp, 0xc
cmp eax, ebp
jne 0x4156eb
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 [0x464a98]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
jl 0x415460
test ebx, ebx
jle 0x4157ad
mov ecx, dword [0x46011c]
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 0x415660
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415660
mov edi, dword [esp + 0x14]
sub eax, edx
mov esi, eax
push esi
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040a6a0
add esp, 0xc
cmp eax, esi
je 0x41578b
mov dword [esp + 0x10], 2
jmp 0x415711
push 0xaf
call fcn.0040ae20
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x415711
mov eax, dword [esp + 0x20]
add eax, 1
push eax
lea ecx, [esp + 0x348]
push ecx
push 0xb0
call fcn.00406330
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.00406520
add esp, 0x14
mov dword [esp + 0x10], 1
jmp 0x415711
test esi, esi
mov dword [esp + 0x10], 2
je 0x415711
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 0x415723
push eax
call fcn.0040a630
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jle 0x415735
push eax
call fcn.0040a630
add esp, 4
cmp byte [esp + 0x13c], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x41574f
lea edx, [esp + 0x13c]
push edx
call esi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41575e
mov eax, dword [esp + 0x30]
push eax
call esi
cmp edi, 2
jne 0x415770
push 0xae
call fcn.0040ae20
add esp, 4
mov ecx, dword [esp + 0x444]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b3fc
add esp, 0x438
ret
push edi
call fcn.0040a630
add esp, 4
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x4157ad
mov dword [esp + 0x10], 2
jmp 0x415723
mov ecx, dword [esp + 0x38]
mov dword [ecx], ebx
jmp 0x415711