Function at 0x1003fd02
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x1013a742
call fcn.101018b2
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.1002b64c
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x1003fd40
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1004009d
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 0x1003fd6a
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 4
je 0x1003fd32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1003fd32
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.1000587e
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10040074
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.100e70df
pop ecx
test eax, eax
mov eax, dword [ebp - 0x28]
pop ecx
jl 0x10040066
cmp eax, edi
je 0x10040066
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.1003e4ac
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x10
cmp dword [ebp + 0x18], edi
je 0x1003ffc7
lea ecx, [ebp - 0x3c]
call fcn.100d829c
push dword [ebp + 0x18]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.100d8557
cmp eax, edi
mov dword [ebp - 0x34], eax
je 0x1003ffbb
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x1003fe1c
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.100164bd
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.1003bd40
mov dword [ebp - 0x20], edi
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xd
call fcn.100164bd
mov esi, eax
push str.icon
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x30], 1
call fcn.100164bd
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.100e7340
add esp, 0x10
test eax, eax
jl 0x1003feac
cmp dword [ebp - 0x20], edi
mov byte [ebp - 0xd], 1
jne 0x1003feb0
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 0x1003ff90
push str.base64
lea ecx, [ebp - 0x54]
mov word [ebp - 0x54], di
call fcn.1000e222
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.100164bd
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.1000e222
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.100164bd
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.101026fe
mov eax, dword [ebp - 0x20]
cmp eax, edi
pop ecx
mov byte [ebp - 4], 0xc
je 0x1003ffaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
cmp eax, edi
mov byte [ebp - 4], 0xa
je 0x1003ffbb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.100d82a2
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x54]
mov word [ebp - 0x54], di
call fcn.1000e222
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 + 0x108]
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 0x1004000d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
test eax, eax
mov byte [ebp - 4], 7
je 0x1004001e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.100015d9
push dword [ebp - 0x2c]
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 4
je 0x1004003c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
call ebx
lea ecx, [ebp + 0xc]
call fcn.100015d9
lea ecx, [ebp + 0x10]
call fcn.100015d9
lea ecx, [ebp + 0x14]
call fcn.100015d9
lea ecx, [ebp + 0x18]
call fcn.100015d9
xor eax, eax
inc eax
jmp 0x100400bf
cmp eax, edi
mov byte [ebp - 4], 7
je 0x10040074
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.100015d9
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 0x10040098
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
call esi
lea ecx, [ebp + 0xc]
call fcn.100015d9
lea ecx, [ebp + 0x10]
call fcn.100015d9
lea ecx, [ebp + 0x14]
call fcn.100015d9
lea ecx, [ebp + 0x18]
call fcn.100015d9
xor eax, eax
call fcn.1010198a
ret