Function at 0x1005b345
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x10181eb7
call fcn.10145d80
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1003d037
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1005b383
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1005b6e0
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x1005b3ad
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 4
je 0x1005b375
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1005b375
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 6
call dword [ecx + 0x3c]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
call fcn.10007b11
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005b6b7
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.10126d24
pop ecx
test eax, eax
mov eax, dword [ebp - 0x28]
pop ecx
jl 0x1005b6a9
cmp eax, edi
je 0x1005b6a9
mov dword [ebp - 0x24], edi
push dword [ebp + 0x14]
mov byte [ebp - 4], 9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.10059b0e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x10
cmp dword [ebp + 0x18], edi
je 0x1005b60a
lea ecx, [ebp - 0x3c]
call fcn.10116843
push dword [ebp + 0x18]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.10116f28
cmp eax, edi
mov dword [ebp - 0x34], eax
je 0x1005b5fe
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x1005b45f
mov dword [ebp - 0x24], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x28]
push str.custombuttons_button
lea ecx, [ebp - 0x30]
call fcn.1002939e
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x24]
push edx
push eax
push esi
mov byte [ebp - 4], 0xb
call dword [ecx + 0x94]
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
call fcn.10056fc1
mov dword [ebp - 0x20], edi
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.1002939e
mov esi, eax
push str.icon
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x30], 1
call fcn.1002939e
mov esi, dword [esi]
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x30], 3
call fcn.10126f8d
add esp, 0x10
test eax, eax
jl 0x1005b4ef
cmp dword [ebp - 0x20], edi
mov byte [ebp - 0xd], 1
jne 0x1005b4f3
mov byte [ebp - 0xd], 0
push dword [ebp - 0x40]
call ebx
push dword [ebp - 0x44]
mov dword [ebp - 4], 0xd
call ebx
cmp byte [ebp - 0xd], 0
je 0x1005b5d3
push str.base64
lea ecx, [ebp - 0x54]
mov word [ebp - 0x54], di
call fcn.10014b08
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x20]
push str.mode
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x44], esi
call fcn.1002939e
mov ecx, dword [esi]
mov eax, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x11
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xb4]
push dword [ebp - 0x40]
call ebx
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
and word [ebp - 0x54], 0
push str.image_x_icon
lea ecx, [ebp - 0x54]
call fcn.10014b08
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x20]
push str.type
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x44], esi
call fcn.1002939e
mov ecx, dword [esi]
mov eax, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x13
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xb4]
push dword [ebp - 0x40]
call ebx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
push dword [ebp - 0x34]
call fcn.10146bbe
mov eax, dword [ebp - 0x20]
cmp eax, edi
pop ecx
mov byte [ebp - 4], 0xc
je 0x1005b5ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
cmp eax, edi
mov byte [ebp - 4], 0xa
je 0x1005b5fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.10116849
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x54]
mov word [ebp - 0x54], di
call fcn.10014b08
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 0x14
movsd dword es:[edi], dword [esi]
call dword [ecx + pe_nt_image_headers32]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x24]
test eax, eax
mov byte [ebp - 4], 8
je 0x1005b650
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
test eax, eax
mov byte [ebp - 4], 7
je 0x1005b661
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.10003b75
push dword [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 4
je 0x1005b67f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
call ebx
lea ecx, [ebp + 0xc]
call fcn.10003b75
lea ecx, [ebp + 0x10]
call fcn.10003b75
lea ecx, [ebp + 0x14]
call fcn.10003b75
lea ecx, [ebp + 0x18]
call fcn.10003b75
xor eax, eax
inc eax
jmp 0x1005b702
cmp eax, edi
mov byte [ebp - 4], 7
je 0x1005b6b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.10003b75
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 4
je 0x1005b6db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xc]
call fcn.10003b75
lea ecx, [ebp + 0x10]
call fcn.10003b75
lea ecx, [ebp + 0x14]
call fcn.10003b75
lea ecx, [ebp + 0x18]
call fcn.10003b75
xor eax, eax
call fcn.10145e58
ret