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

Disassembly:
push 0xffffffffffffffff
push 0x4522a7
mov eax, dword fs:[0]
push eax
mov eax, 0x14c4
call fcn.00440690
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x14c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x14d8]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040cc60
xor ebp, ebp
xor ecx, ecx
mov word [esp + 0x6c], cx
mov edi, 7
mov ecx, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebp
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x40d1e4
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.00408a00
push 9
xor edx, edx
push 0x4585e8
lea ecx, [esp + 0x38]
mov dword [esp + 0x14e8], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], dx
call fcn.00408a00
push 1
xor eax, eax
push 0x4585e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x14e8], 1
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
call fcn.00408a00
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
mov byte [esp + 0x14e0], 2
jae 0x40d262
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x44]
push ecx
push ebp
lea edi, [ebx + 0x18]
push eax
mov ecx, edi
call fcn.0040cd20
mov esi, eax
cmp esi, 0xffffffff
je 0x40d30e
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x70]
add ebx, 0x54
push edx
mov ecx, ebx
call fcn.00408900
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x40d29f
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x60]
push ecx
push esi
push eax
mov ecx, edi
call fcn.0040cd20
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x14]
cmp eax, 0xffffffff
je 0x40d2d4
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.0040d140
mov byte [esp + 0x14e0], 3
jmp 0x40d2e9
push 0xffffffffffffffff
add ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.0040d140
mov byte [esp + 0x14e0], 4
push 0xffffffffffffffff
push ebp
push eax
mov ecx, ebx
call fcn.004090f0
cmp dword [esp + 0x2c], 8
jb 0x40d381
mov eax, dword [esp + 0x18]
push eax
call fcn.0043e5e6
add esp, 4
jmp 0x40d381
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x40d320
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x84]
push ecx
push ebp
push 0x4585dc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40d381
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40d351
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x88]
lea esi, [ebx + 0x54]
push eax
mov ecx, esi
call fcn.00408a00
push 4
push 0x4585d0
mov ecx, esi
call fcn.004095d0
mov edi, 8
cmp dword [esp + 0x64], edi
jb 0x40d399
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0043e5e6
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], dx
cmp dword [esp + 0x48], edi
jb 0x40d3c0
mov eax, dword [esp + 0x34]
push eax
call fcn.0043e5e6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], cx
cmp dword [esp + 0x80], edi
jb 0x40d3e5
mov edx, dword [esp + 0x6c]
push edx
call fcn.0043e5e6
add esp, 4
mov ecx, dword [esp + 0x14d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c0]
xor ecx, esp
call fcn.0043eed8
add esp, 0x14d0
ret