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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ab89
mov eax, dword fs:[0]
push eax
sub esp, 0x4dc
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], 0
mov ebx, dword [edi + 0xd4]
call fcn.0041678c
mov ecx, eax
test ecx, ecx
je 0x4103a6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ff85
sub ecx, edx
cmp byte [ebp + ecx - 0x115], 0x5c
je 0x40ffb4
mov byte [ebp + ecx - 0x114], 0x5c
inc ecx
cmp ecx, 0x104
jae 0x4103a1
mov byte [ebp + ecx - 0x114], al
push 0x5c35b8
push ecx
push 0x1ae
mov ecx, ebx
call fcn.004077a0
test al, al
je 0x410032
lea eax, [ebp - 0x420]
push eax
push 1
push 0x401cc0
push 0x401cb0
push 0x401c90
push 0x401c70
push 0x401c50
push 0x401c30
push 0x401c10
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x41002c
lea eax, [ebp - 0x114]
push eax
push 0
push 0x401ce0
push 0
push eax
push str.DDXX.CAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
add esp, 0x20
mov edi, dword [ebp - 0x428]
push str.DDXAddinCode.txt
push ecx
push 0x19a
mov ecx, ebx
call fcn.004077a0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410063
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi + 0xd4]
push str.DDXAddinCode.txt
push esi
push ecx
call fcn.004076c0
mov dword [ebp - 0x4e8], 0x5c4600
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x4d8]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x42c], 1
push eax
lea ecx, [ebp - 0x478]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x47c], 0x58
movlpd qword [ebp - 0x4e0], xmm0
call fcn.004091a0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x4e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x4ec], eax
lea ecx, [ebp - 0x4d8]
call fcn.00409060
push ecx
push 1
push esi
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 4
call fcn.00408fa0
test eax, eax
jne 0x410165
mov eax, dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4e8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004037a0
mov dword [ebp - 4], 5
cmp dword [ebp - 0x48c], 0
je 0x4102f3
sub esp, 8
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x4e8]
push eax
call fcn.00412ae0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x4102b9
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x200
lea eax, [ebp - 0x414]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4101c0
lea ecx, [ebp - 0x214]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4101d4
push 0x100
lea eax, [ebp - 0x414]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x214]
push eax
push 2
push 0
call esi
call fcn.0041678c
test eax, eax
je 0x4103a6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x424]
call fcn.00406f80
test al, al
jne 0x410259
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410237
sub eax, edx
lea ecx, [ebp - 0x424]
sar eax, 1
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00407390
mov byte [ebp - 4], 7
lea eax, [ebp - 0x424]
mov ecx, dword [edi + 0x1894]
push eax
push dword [ecx + 8]
call fcn.00424cf1
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410294
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x4e8]
push eax
call fcn.00412ae0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x4101b0
lea ecx, [ebp - 0x4d8]
call fcn.00408eb0
test eax, eax
jne 0x4102f3
mov eax, dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4e8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004037a0
mov esi, dword [edi + 0xd4]
push str.DDXAddinCode.txt
push esi
push ecx
call fcn.004076c0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x4e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x4ec], eax
lea ecx, [ebp - 0x4d8]
call fcn.004086c0
mov eax, dword [ebp - 0x4e8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x4ec], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 4], 8
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005500f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
call fcn.0054e504
push 0x80004005
call fcn.00407340
int3