Function at 0x401f30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], esi
jne 0x4022ef
call fcn.004014c0
cmp eax, esi
mov dword [ebp - 0x30], eax
je 0x402700
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x68], eax
xor eax, eax
mov word [ebp - 0x48], 0xa
mov word [ebp - 0x46], si
mov word [ebp - 0x44], si
mov word [ebp - 0x42], si
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x1c], esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x64], esi
push eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], esi
mov dword [ebp + 8], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp + 8]
push 0x20
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x98]
push esi
push eax
mov word [ebp - 0x58], 0x400d
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
push edx
lea edx, [ebp - 0x98]
push edx
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x68]
push edx
push 1
push 0x400
push 0x401510
push 0xd
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x4022d0
mov dword [ebp - 4], 0x8000ffff
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 4], esi
jl 0x4026f1
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x34]
push edx
push 0x401548
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x4026f1
mov eax, dword [ebx + 0x10]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x2c], eax
jne 0x402053
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], esi
jl 0x4026f1
xor edi, edi
cmp edi, dword [ebx]
jae 0x402081
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
push dword [ecx + edi*4]
mov ecx, dword [ebx + 8]
mov eax, dword [eax]
push dword [ecx + edi*4]
push dword [ebp - 0x28]
call dword [eax + 0x38]
inc edi
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x40205e
cmp dword [ebp - 4], esi
jl 0x4026f1
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x2c]
cmp eax, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], ecx
jbe 0x4021b1
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x28]
push edx
mov dword [ebp - 8], esi
push dword [ebp - 0x18]
mov ecx, dword [eax]
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, 0x800e0406
mov dword [ebp - 4], edi
jne 0x4020fc
mov eax, dword [ebp - 8]
lea edi, [ebp - 0x1c]
push edi
mov edi, dword [ebp - 0x18]
shl eax, 2
mov ecx, dword [ebp - 0x28]
add edi, eax
push edi
mov edi, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x1c], esi
mov edx, dword [ecx]
push eax
push 1
push esi
push ecx
call dword [edx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
mov edi, dword [ebp - 4]
cmp edi, esi
jge 0x402199
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x402199
cmp dword [ebp - 0x14], esi
je 0x40218d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ole32.dll_CreateBindCtx]
cmp eax, esi
jl 0x402408
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
sub eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
push esi
add eax, dword [ebx + 0x10]
push dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, esi
jl 0x402408
cmp dword [ebp - 0x20], esi
je 0x402408
push dword [ebp - 0x20]
push edi
push str.AddEntries_Error:__x_in_file___s__n
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x402187
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + eax*4], esi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
sub dword [ebp + 8], eax
shl eax, 2
add dword [ebp - 0xc], eax
add dword [ebp - 0x18], eax
cmp dword [ebp + 8], esi
ja 0x4020a4
cmp dword [ebp - 4], esi
jl 0x4026f1
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x10]
cmp eax, esi
mov dword [ebp + 8], eax
jbe 0x402463
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x34]
push edx
push edi
push dword [ebp - 0x20]
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp + 8]
push esi
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x4022a0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x4022a0
cmp dword [ebp - 0x14], esi
je 0x40229d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CreateBindCtx]
cmp eax, esi
jl 0x40241f
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
sub eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push esi
add eax, dword [ebx + 0x10]
push dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, esi
jl 0x40241f
cmp dword [ebp - 0x10], esi
je 0x40241f
push dword [ebp - 0x10]
push dword [ebp - 4]
push str.SetCaptionsAndKeywords_Error:__x_in_file___s__n
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x402294
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
sub dword [ebp + 8], eax
cmp eax, esi
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x18], ecx
jbe 0x40245a
push 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
pop ecx
cmp word [eax], si
je 0x402438
add eax, ecx
dec dword [ebp - 0xc]
jmp 0x4022c0
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x401538
push eax
call dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x402009
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, esi
jne 0x402326
mov dword [ebp - 4], 0x8007000e
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ebx, dword [ebp - 0x10]
pop ecx
jmp 0x402013
lea eax, [ebp - 0x28]
push eax
push 0x401538
push 7
push esi
push 0x401578
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x402317
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [edi + ebx*2 - 8]
push 0x405514
mov dword [ebp - 0x1c], eax
push edi
mov word [eax], 0x6c
lea eax, [edi + ebx*2 - 6]
lea ebx, [edi + ebx*2 - 4]
mov dword [ebp - 0x20], eax
mov word [eax], 0x6f
mov word [ebx], 0x67
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
pop ecx
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
push 0x4015b8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x1c]
push 1
push edi
mov word [eax], 0x6d
mov eax, dword [ebp - 0x20]
mov word [eax], 0x6d
mov eax, dword [ebp + 8]
mov word [ebx], 0x63
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x4023c8
mov eax, dword [ebp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], esi
jl 0x402317
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], esi
jne 0x402317
mov ebx, str.Main
push 0x406e68
push ebx
call fcn.00401b9c
mov ecx, dword [ebp - 0x10]
push 0x406e68
push ebx
call fcn.00401ba3
jmp 0x402317
push edi
push str.AddEntries_Error:__x_in_file_with_no_display_name_n
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0xc
jmp 0x40217a
push dword [ebp - 4]
push str.SetCaptionsAndKeywords_Error:__x_in_file_with_no_display_name_n
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0xc
jmp 0x402287
add eax, ecx
dec dword [ebp - 0xc]
cmp word [edi], si
je 0x402449
add edi, ecx
dec dword [ebp - 0x20]
jmp 0x40243d
add edi, ecx
dec dword [ebp - 0x20]
dec dword [ebp - 0x10]
jne 0x4022c0
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], esi
ja 0x4021e3
cmp dword [ebp - 4], esi
jl 0x4026f1
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x2c]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], ecx
jbe 0x4025a6
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 8]
push edx
push 1
push dword [ebp - 0x18]
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push dword [ebp + 8]
push esi
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
jge 0x40258b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x40258b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push eax
push esi
call dword [sym.imp.ole32.dll_CreateBindCtx]
cmp eax, esi
jl 0x402748
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
sub eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push esi
add eax, dword [ebx + 0x10]
push dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp eax, esi
jl 0x402748
cmp dword [ebp - 0xc], esi
je 0x402748
cmp dword [ebp - 0x14], esi
je 0x402516
push dword [ebp - 0xc]
push edi
push str.UpdateEntries_Error:__x_in_file___s__n
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0x10
push 1
push dword [ebp - 0xc]
push edi
call fcn.0040367a
add esp, 0xc
cmp eax, 7
jne 0x402740
mov dword [ebp - 0x1c], 1
push 0x208
lea eax, [ebp - 0x2f0]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0xc], esi
je 0x40256a
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x40257a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x1c], esi
jne 0x4025a6
mov eax, dword [ebp - 4]
inc dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
sub dword [ebp + 8], eax
add dword [ebp - 0x38], eax
cmp dword [ebp + 8], esi
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x18], ecx
ja 0x402486
cmp dword [ebp - 4], esi
jl 0x4026f1
cmp dword [ebp - 0x30], esi
je 0x4026f1
cmp dword [ebp - 0x38], esi
jbe 0x4026f1
lea edx, [ebp - 8]
lea eax, [ebp - 0x78]
push edx
lea edx, [ebp - 0xe8]
mov dword [ebp - 0x58], eax
push edx
xor eax, eax
lea edi, [ebp - 0x3c]
push 0x2000
mov word [ebp - 0x48], 0xa
push dword [ebp - 0x2c]
mov word [ebp - 0x46], si
mov word [ebp - 0x44], si
mov word [ebp - 0x42], si
mov dword [ebp - 0x40], esi
mov dword [ebp + 8], esi
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], esi
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x402788
push dword [0x405054]
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
push dword [ebp - 0x9c]
call edi
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x402768
push 0x4052c0
push ebx
call edi
pop ecx
cmp eax, esi
pop ecx
je 0x40264a
mov word [eax], si
push ebx
call fcn.0040175e
push eax
lea eax, [ebp - 0x2e8]
push str._ELEMENTDOWNLOADED__u__s
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
push dword [ebp - 0x9c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x2e8]
mov word [ebp - 0x78], 8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
call edi
push 0x20
lea eax, [ebp - 0x98]
push esi
push eax
mov word [ebp - 0x68], 8
mov dword [ebp - 0x60], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp + 8]
mov eax, dword [ebp - 0x30]
push edx
lea edx, [ebp - 0x98]
push edx
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x58]
push edx
push 1
push 0x400
push 0x401510
push 3
push eax
call dword [ecx + 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x68]
push eax
call edi
cmp dword [ebp - 0x14], esi
je 0x402700
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x402710
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x34]
cmp eax, esi
je 0x402720
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x30]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x402730
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x24]
pop ecx
leave
ret 4
mov dword [ebp - 4], esi
jmp 0x402534
cmp dword [ebp - 0x14], esi
je 0x402534
push edi
push 0x4052c4
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0xc
jmp 0x402534
call fcn.0040175e
push eax
lea eax, [ebp - 0x2e8]
push str._ELEMENTDOWNLOADED__u__ELEMENTTAB_PICTURES
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
jmp 0x402666
call fcn.0040175e
push eax
lea eax, [ebp - 0x2e8]
push str._ELEMENTDOWNLOADED__u__ELEMENTTAB_PICTURES
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
jmp 0x402672