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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5161d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c5], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xbe], edx
mov eax, dword [ebp - 4]
add eax, 0xcf
call fcn.00403c48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a3]
test eax, eax
jns 0x515a77
call fcn.00402f70
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
call fcn.00403c48
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1cd], 0
jne 0x5161b3
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cd], 1
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor edx, edx
push ebp
push 0x51615f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 2
jge 0x515cea
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1ec], 0
jne 0x515ae9
push 1
mov ecx, 0x2776
mov dl, 1
mov eax, dword [0x510440]
call fcn.005105bc
call fcn.00403724
mov eax, dword [ebp - 4]
call fcn.005163b4
test eax, eax
jne 0x515afd
mov eax, dword [ebp - 4]
call fcn.00517118
mov eax, dword [ebp - 4]
call fcn.005163b4
test eax, eax
jne 0x515b37
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cd], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xbe], 0
jne 0x515b37
push 1
mov ecx, 0x2afa
mov dl, 1
mov eax, dword [0x510440]
call fcn.005105bc
call fcn.00403724
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1cd], 0
je 0x515cea
lea eax, [ebp - 0x18]
call fcn.00403c48
cmp dword [ebp - 8], 0
jne 0x515c50
mov eax, dword [ebp - 4]
cmp dword [eax + 0x152], 0
je 0x515c50
mov eax, dword [ebp - 4]
test byte [eax + 0x156], 0x10
jne 0x515c50
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x152]
mov dl, 1
call fcn.0050ea24
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
call fcn.0040a5ec
mov eax, dword [ebp - 4]
test byte [eax + 0x156], 0x20
je 0x515bb5
mov eax, dword [ebp - 0x18]
call fcn.0050e8c8
mov eax, dword [ebp - 0x18]
call fcn.0050e974
test al, al
jne 0x515bdb
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 0x2908
mov dl, 1
mov eax, dword [0x510440]
call fcn.00510710
call fcn.00403724
lea eax, [ebp - 0x1c]
mov edx, 0x106
call fcn.004041f4
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x1c]
call fcn.00404088
push eax
push 0
push 0x5161e4
mov eax, dword [ebp - 0x18]
call fcn.00404088
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x515c3a
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x515c23
call fcn.00402f70
push eax
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x510440]
call fcn.005107cc
call fcn.00403724
mov eax, dword [ebp - 0x1c]
call fcn.00404088
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x1c]
call fcn.00403c48
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1ec]
call fcn.00403ce0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c9], 0
jle 0x515cea
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd9], 0
jne 0x515cb3
lea eax, [ebp - 0x1c]
mov edx, 0x106
call fcn.004041f4
mov eax, dword [ebp - 0x1c]
call fcn.00404088
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, dword [ebp - 0x1c]
call fcn.00404088
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00403dfc
lea eax, [ebp - 0x1c]
call fcn.00403c48
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd9]
mov dl, 1
call fcn.0050ea24
push 1
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
call fcn.00518098
test eax, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x1cd], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1cd], 0
je 0x515d00
mov eax, dword [ebp - 4]
call fcn.0051334c
mov ebx, eax
test ebx, ebx
jle 0x516155
xor edx, edx
push ebp
push 0x51614b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x98
call fcn.00409548
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00518fd8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0
je 0x515d7b
mov eax, dword [ebp - 0x18]
call fcn.00403ec4
inc eax
test eax, eax
jns 0x515d4f
call fcn.00402f70
call fcn.0040aab8
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x70], ebx
mov eax, dword [ebp - 0x18]
call fcn.00403ec4
mov ecx, eax
test ecx, ecx
jns 0x515d6f
call fcn.00402f70
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.0040a920
jmp 0x515d83
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, dword [eax]
call dword [edx + 0x14]
shl eax, 5
test eax, eax
jns 0x515d9d
call fcn.00402f70
call fcn.00409548
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x515e9e
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
mov edx, 0x5161f0
call fcn.00403fd4
je 0x515e9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x515e88
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x4c]
mov eax, ebx
shl eax, 5
add esi, eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00403ec4
inc eax
test eax, eax
jns 0x515e33
call fcn.00402f70
call fcn.0040aab8
mov dword [esi], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00403ec4
inc eax
test eax, eax
jns 0x515e5f
call fcn.00402f70
push eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
pop ecx
call fcn.0040a920
inc ebx
dec dword [ebp - 0x28]
jne 0x515e01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x44], eax
jmp 0x515ea6
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x44], edx
cmp dword [ebp - 8], 1
jne 0x515f66
mov eax, dword [ebp - 4]
call fcn.005163b4
dec eax
test eax, eax
jl 0x515f66
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e2]
mov edx, ebx
call fcn.004127a0
mov esi, eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00404088
push eax
mov eax, dword [esi + 0x2a]
call fcn.00404088
mov edx, eax
pop eax
call fcn.004097e0
test eax, eax
jne 0x515f5c
mov edx, dword [esi + 0x14]
test edx, edx
jns 0x515f15
call fcn.00402f70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f4]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x54], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x58], eax
mov eax, dword [esi + 0x14]
test eax, eax
jns 0x515f4a
call fcn.00402f70
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x44], 1
jmp 0x515f66
inc ebx
dec dword [ebp - 0x28]
jne 0x515ec7
cmp dword [ebp - 8], 2
jne 0x515fc0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x60], 0xffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0xc]
call fcn.00414e00
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x54], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f4]
call fcn.00414e00
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x94], 7
mov eax, dword [ebp - 4]
add eax, 0xc2
call fcn.00403c48
cmp dword [ebp - 8], 2
jge 0x516031
mov eax, dword [ebp - 4]
cmp byte [eax + 0xde], 0
je 0x516031
mov eax, dword [ebp - 4]
cmp dword [eax + 0x19f], 0
jne 0x516031
mov eax, dword [ebp - 4]
cmp word [eax + 0x8a], 0
jne 0x516031
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1a3], edx
lea edx, [ebp - 0x2c]
mov eax, 0x2906
call fcn.005101e0
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00512518
cmp dword [ebp - 8], 0
je 0x516046
cmp dword [ebp - 8], 0
jle 0x51605a
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x54], 0
je 0x51605a
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005133bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c5], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516155
mov eax, dword [ebp - 4]
call fcn.005133ac
mov eax, dword [ebp - 4]
mov byte [eax + 0x1cd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x173]
mov edx, dword [eax]
call dword [edx + 0x40]
cmp dword [ebp - 8], 0
jle 0x5160a7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c5], 1
je 0x5160a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f4]
call fcn.00415244
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c9], 0
jle 0x5160bb
mov eax, dword [ebp - 0x14]
call fcn.0040a0e8
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x48]
call fcn.0040ab04
mov eax, dword [edi + 0x1c]
call fcn.0040ab04
mov eax, dword [edi + 0x70]
test eax, eax
je 0x5160da
call fcn.0040ab04
mov ebx, dword [edi + 0x44]
dec ebx
cmp ebx, 0
jl 0x5160fa
mov esi, dword [edi + 0x4c]
mov eax, ebx
shl eax, 5
add esi, eax
mov eax, dword [esi]
call fcn.0040ab04
dec ebx
cmp ebx, 0xffffffff
jne 0x5160e3
mov eax, dword [edi + 0x4c]
call fcn.004027b8
mov eax, dword [ebp - 0x20]
call fcn.004027b8
cmp dword [ebp - 8], 2
jge 0x51614a
mov eax, dword [ebp - 4]
cmp byte [eax + 0xde], 0
je 0x51614a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x19f], 0
jne 0x51614a
mov eax, dword [ebp - 4]
cmp word [eax + 0x8a], 0
jne 0x51614a
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x516141
call fcn.00402f70
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a3], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5161b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5161dd
lea eax, [ebp - 0x2c]
call fcn.00403c48
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403c6c
ret