Function at 0x53deac
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 0x53e60c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1f8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc0], edx
mov eax, dword [ebp - 4]
add eax, 0xd4
call fcn.00403dd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1cc]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
call fcn.00403dd8
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
jne 0x53e5e9
mov eax, dword [ebp - 4]
mov byte [eax + 0x200], 1
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor edx, edx
push ebp
push 0x53e595
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 2
jge 0x53e170
mov eax, dword [ebp - 4]
cmp dword [eax + 0x224], 0
jne 0x53df78
push 1
mov ecx, 0x2776
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538c54
call fcn.00403898
mov eax, dword [ebp - 4]
call fcn.0053e7e4
test eax, eax
jne 0x53df8c
mov eax, dword [ebp - 4]
call fcn.0053f51c
mov eax, dword [ebp - 4]
call fcn.0053e7e4
test eax, eax
jne 0x53dfc6
mov eax, dword [ebp - 4]
mov byte [eax + 0x200], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
jne 0x53dfc6
push 1
mov ecx, 0x2afa
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538c54
call fcn.00403898
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x53e170
lea eax, [ebp - 0x18]
call fcn.00403dd8
cmp dword [ebp - 8], 0
jne 0x53e0d6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x170], 0
je 0x53e0d6
mov eax, dword [ebp - 4]
test byte [eax + 0x174], 0x10
jne 0x53e0d6
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
mov dl, 1
call fcn.00537278
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
call fcn.0040abd0
mov eax, dword [ebp - 4]
test byte [eax + 0x174], 0x20
je 0x53e044
mov eax, dword [ebp - 0x18]
call fcn.00537124
mov eax, dword [ebp - 0x18]
call fcn.005371d0
test al, al
jne 0x53e06a
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 0x2908
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538da8
call fcn.00403898
lea eax, [ebp - 0x1c]
mov edx, 0x106
call fcn.00404384
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x1c]
call fcn.00404218
push eax
push 0
push 0x53e61c
mov eax, dword [ebp - 0x18]
call fcn.00404218
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x53e0c0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x538ad8]
call fcn.00538e64
call fcn.00403898
mov eax, dword [ebp - 0x1c]
call fcn.00404218
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x1c]
call fcn.00403dd8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x224]
call fcn.00403e70
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1fc], 0
jle 0x53e170
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0
jne 0x53e139
lea eax, [ebp - 0x1c]
mov edx, 0x106
call fcn.00404384
mov eax, dword [ebp - 0x1c]
call fcn.00404218
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, dword [ebp - 0x1c]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00403f8c
lea eax, [ebp - 0x1c]
call fcn.00403dd8
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov dl, 1
call fcn.00537278
push 1
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebp - 4]
call fcn.00540408
test eax, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0x200], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x53e186
mov eax, dword [ebp - 4]
call fcn.0053b8b4
mov ebx, eax
test ebx, ebx
jle 0x53e58b
xor edx, edx
push ebp
push 0x53e581
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x98
call fcn.00409a3c
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00541240
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0
je 0x53e1ef
mov eax, dword [ebp - 0x18]
call fcn.00404054
inc eax
call fcn.0040b09c
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x70], ebx
mov eax, dword [ebp - 0x18]
call fcn.00404054
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.0040af04
jmp 0x53e1f7
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, dword [eax]
call dword [edx + 0x14]
shl eax, 5
call fcn.00409a3c
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x53e2ef
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
mov edx, 0x53e628
call fcn.00404164
je 0x53e2ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x53e2d9
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 + 0x194]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00404054
inc eax
call fcn.0040b09c
mov dword [esi], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00404054
inc eax
push eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
pop ecx
call fcn.0040af04
inc ebx
dec dword [ebp - 0x28]
jne 0x53e268
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x44], eax
jmp 0x53e2f7
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x44], edx
cmp dword [ebp - 8], 1
jne 0x53e3a5
mov eax, dword [ebp - 4]
call fcn.0053e7e4
dec eax
test eax, eax
jl 0x53e3a5
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x218]
mov edx, ebx
call fcn.004131e0
mov esi, eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00404218
push eax
mov eax, dword [esi + 0x2a]
call fcn.00404218
mov edx, eax
pop eax
call fcn.00409cd4
test eax, eax
jne 0x53e39b
mov edx, dword [esi + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
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 + 0x22c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x58], eax
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x44], 1
jmp 0x53e3a5
inc ebx
dec dword [ebp - 0x28]
jne 0x53e318
cmp dword [ebp - 8], 2
jne 0x53e3ff
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.00415840
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 + 0x22c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00415840
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, 0xc4
call fcn.00403dd8
cmp dword [ebp - 8], 2
jge 0x53e470
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe9], 0
je 0x53e470
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c8], 0
jne 0x53e470
mov eax, dword [ebp - 4]
cmp word [eax + 0x8a], 0
jne 0x53e470
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1cc], edx
lea edx, [ebp - 0x2c]
mov eax, 0x2906
call fcn.00538878
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0053ab0c
cmp dword [ebp - 8], 0
je 0x53e485
cmp dword [ebp - 8], 0
jle 0x53e499
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x54], 0
je 0x53e499
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0053b91c
mov edx, dword [ebp - 4]
mov dword [edx + 0x1f8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e58b
mov eax, dword [ebp - 4]
call fcn.0053b910
mov eax, dword [ebp - 4]
mov byte [eax + 0x200], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
mov edx, dword [eax]
call dword [edx + 0x40]
cmp dword [ebp - 8], 0
jle 0x53e4e6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1f8], 1
je 0x53e4e6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00415c84
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1fc], 0
jle 0x53e4fa
mov eax, dword [ebp - 0x14]
call fcn.0040a6a8
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x48]
call fcn.0040b0e8
mov eax, dword [edi + 0x1c]
call fcn.0040b0e8
mov eax, dword [edi + 0x70]
test eax, eax
je 0x53e519
call fcn.0040b0e8
mov ebx, dword [edi + 0x44]
dec ebx
cmp ebx, 0
jl 0x53e539
mov esi, dword [edi + 0x4c]
mov eax, ebx
shl eax, 5
add esi, eax
mov eax, dword [esi]
call fcn.0040b0e8
dec ebx
cmp ebx, 0xffffffff
jne 0x53e522
mov eax, dword [edi + 0x4c]
call fcn.004027d0
mov eax, dword [ebp - 0x20]
call fcn.004027d0
cmp dword [ebp - 8], 2
jge 0x53e580
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe9], 0
je 0x53e580
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c8], 0
jne 0x53e580
mov eax, dword [ebp - 4]
cmp word [eax + 0x8a], 0
jne 0x53e580
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x1cc], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53e5e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e613
lea eax, [ebp - 0x2c]
call fcn.00403dd8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403dfc
ret