Function at 0x1003386f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f424
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push esi
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x1c]
push 0
mov ecx, dword [ebp - 0x10]
call fcn.1002f14c
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CCommonDialog.0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CFileDialog.0
mov eax, dword [ebp - 0x10]
add eax, 0xc8
mov dword [ebp - 0x40], eax
call fcn.100237a7
push eax
mov ecx, dword [ebp - 0x40]
call fcn.10007b05
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0x4dc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
and dword [eax], 0
mov eax, dword [ebp - 0x10]
add eax, 0x4e0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
and dword [eax], 0
push 0x114
push 0
lea eax, [ebp - 0x184]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x184], 0x114
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x180], 6
jb 0x10033937
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0xac], ecx
jmp 0x10033941
mov eax, dword [ebp - 0x10]
and dword [eax + 0xac], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xb0], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0xb4], 0
cmp dword [ebp + 0x20], 0
jne 0x10033962
mov dword [ebp + 0x20], 0x58
push dword [ebp + 0x20]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa8], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xa8], 0
jne 0x10033986
call fcn.10007648
push dword [ebp + 0x20]
push 0
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx + eax + 0x2cc], cx
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx + eax + 0xcc], cx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x4d4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc4], ecx
mov eax, dword [ebp - 0x10]
and dword [eax + 0x4d8], 0
cmp dword [ebp + 8], 0
je 0x100339f1
mov dword [ebp - 0x28], 0x7004
jmp 0x100339f8
mov dword [ebp - 0x28], 0x7005
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x80], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov esi, dword [ebp - 0x10]
add esi, 0x2cc
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov dword [eax + 0x1c], esi
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov dword [eax + 0x20], 0x104
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov esi, dword [ebp - 0x10]
add esi, 0xcc
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov dword [eax + 0x24], esi
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov dword [eax + 0x28], 0x100
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
add eax, 0x34
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
or eax, 0x20
or eax, 0x80000
mov ecx, dword [ebp - 0x2c]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
and eax, 0x40
je 0x10033aad
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
add eax, 0x34
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
and eax, 0xff7fffff
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
call fcn.10024159
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov dword [eax + 0x44], 0x100335db
cmp dword [ebp + 0x10], 0
je 0x10033afe
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0x104
mov eax, dword [ebp - 0x10]
add eax, 0x2cc
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.100072d4
pop ecx
cmp dword [ebp + 0x18], 0
je 0x10033bb7
mov eax, dword [ebp - 0x10]
add eax, 0xc8
mov dword [ebp - 0x58], eax
cmp dword [ebp + 0x18], 0
jne 0x10033b1f
and dword [ebp - 0x34], 0
jmp 0x10033b54
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
mov ax, word [eax]
mov word [ebp - 0x22], ax
add dword [ebp - 0x20], 2
cmp word [ebp - 0x22], 0
jne 0x10033b2e
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x50]
sar eax, 1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x58]
call fcn.10007c16
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc8
call fcn.10007a61
mov dword [ebp - 0x14], eax
push 0x7c
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10033b9d
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx], ax
mov eax, dword [ebp - 0x14]
inc eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x10033b75
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10033e68
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xac], 1
jne 0x10033d17
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x10033d0d
mov dword [ebp - 0x60], 0x1005cc4c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x4dc], ecx
mov dword [ebp - 0x64], 0x1005cc2c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x64]
mov dword [eax + 0x4e0], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc4], 0
je 0x10033c2f
lea eax, [ebp - 0x1c]
push eax
call fcn.10035e9b
pop ecx
push eax
push 0x1005cca8
push 1
push 0
push 0x10040730
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
jmp 0x10033c51
lea eax, [ebp - 0x1c]
push eax
call fcn.10035e9b
pop ecx
push eax
push 0x1005cca8
push 1
push 0
push 0x10040740
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10033c66
mov eax, dword [ebp - 0x10]
and dword [eax + 0xac], 0
jmp 0x10033d17
lea eax, [ebp - 0x70]
push eax
call fcn.10035e9b
pop ecx
push eax
push 0x1005cc88
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
push dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10033c92
mov dword [ebp - 0x38], 1
jmp 0x10033c96
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x10033ca7
call fcn.10007648
xor eax, eax
jne 0x10033c83
mov eax, dword [ebp - 0x10]
add eax, 0xb8
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x4dc
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
push dword [ebp - 0x1c]
call dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10033cda
mov dword [ebp - 0x3c], 1
jmp 0x10033cde
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x10033cef
call fcn.10007648
xor eax, eax
jne 0x10033ccb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xbc], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0xc0], ecx
jmp 0x10033d17
mov eax, dword [ebp - 0x10]
and dword [eax + 0xac], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret 0x20