Function at 0x10046016
Capabilities:
Delete file

Disassembly:
push 0x58
mov eax, 0x1017f31c
call fcn.10145d80
mov edi, ecx
push 1
push dword [edi + 0x2c]
mov esi, 0x101f84e8
mov ecx, esi
call fcn.10051180
push 1
push dword [edi + 0x29c]
mov ecx, esi
call fcn.10051232
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
mov dword [ebp - 0x38], ebx
call fcn.1007a762
pop ecx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.100e5402
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.1005c0e2
pop ecx
lea esi, [edi + 0x30]
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.1003d1c2
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
jmp 0x100461fc
lea ecx, [ebp - 0x4c]
call fcn.1003c7af
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.1003c541
cmp dword [ebp - 0x14], ebx
je 0x100461f4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.1003da00
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x100461d3
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
mov byte [ebp - 4], 6
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [ecx + 0x3c]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
call fcn.10007b11
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.10003b75
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x101f84b0
mov dword [ebp - 0x28], ebx
call fcn.100e4bba
cmp dword [ebp - 0x28], ebx
je 0x10046137
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x20]
call fcn.10007b11
mov ecx, dword [ebp - 0x28]
call fcn.100c6d84
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x101f84b0
mov byte [ebp - 4], 7
call fcn.100e57e7
cmp dword [ebp - 0x18], ebx
je 0x100461a9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
call fcn.1003da47
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x1004619b
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 9
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.100148af
test al, al
je 0x1004618f
push ebx
mov ecx, 0x101f84b0
call fcn.100e6199
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x100461a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x100461ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x20]
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x100461e6
mov dword [ebp - 0x14], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x100461f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
call fcn.1003c8c0
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.1003d1c2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1003c7d0
test al, al
je 0x1004609a
mov ecx, esi
call fcn.10041f50
mov eax, dword [edi + 0x294]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x18], ebx
jle 0x10046428
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea ecx, [edi + 0xb8]
mov dword [ebp - 0x30], ebx
call fcn.10044430
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x10046264
mov dword [ebp - 0x1c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10046274
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x30]
push eax
call dword [ecx + 0x38]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.1003c541
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1004629f
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
push 1
push str.ICDButton
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.10138b03
push dword [ebp - 0x30]
mov ecx, esi
push 0x101a1d14
push dword [ebp - 0x10]
call fcn.10138d7f
cmp dword [edi + 0x29c], ebx
push ebx
jne 0x100462e5
push dword [ebp - 0x18]
lea ecx, [edi + 0xb8]
call fcn.100444e5
xor ecx, ecx
cmp eax, ebx
setne cl
push ecx
push str.visible
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10138dbc
mov eax, dword [edi + 0x2c]
cmp eax, ebx
jne 0x100462ff
push 1
jmp 0x10046305
cmp eax, 2
jne 0x10046314
push ebx
push str.showtext
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10138dbc
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.1003da00
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xd
je 0x10046347
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0x3c]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x10046396
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x64]
mov word [ebp - 0x64], bx
call fcn.100293ce
sub esp, 0x10
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0xe
call fcn.1003cb4f
push str.custombuttonid
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10138c7f
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x100463e5
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x54]
mov word [ebp - 0x54], bx
call fcn.100293ce
sub esp, 0x10
lea eax, [ebp - 0x54]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0xf
call fcn.1003cb4f
push str.custombutton_XmlPath
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10138c7f
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
mov ecx, esi
call fcn.10138231
push dword [ebp - 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x10046410
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x20]
mov byte [ebp - 4], 0xa
call esi
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jl 0x1004623f
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x10046439
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x44]
call fcn.10003b75
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x10046452
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x10046462
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x10046473
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.10145e58
ret 8