Function at 0x4699f0
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1941
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
push 0
push 0x5c1bf8
push 0x1004
push 0x5bcc3c
push 0
push 1
lea eax, [esp + 0x44]
mov esi, ecx
push eax
mov dword [esp + 0x30], esi
call fcn.004236b0
mov dword [esp + 0x2c], vtable.WTL::CFileDialog.0
mov dword [esp + 0x4c8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edi, [esp + 0x2c]
call fcn.00423340
cmp eax, 1
jne 0x469da6
lea edi, [esp + 0x1c]
call fcn.00469490
lea eax, [esp + 0xa8]
mov byte [esp + 0x4c8], 1
lea edx, [eax + 2]
jmp 0x469aa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469aa0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xa8]
mov ebx, eax
push ecx
lea eax, [esp + 0x20]
call fcn.00404050
lea edi, [esp + 0x1c]
call fcn.00431730
lea eax, [esp + 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469ad5
sub eax, edx
sar eax, 1
lea edx, [esp + 0x2a8]
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00404050
lea edi, [esp + 0x24]
call fcn.00431730
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2a8]
push eax
mov byte [esp + 0x4cc], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469b47
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2b0]
push eax
call fcn.0046a320
lea edi, [esp + 0x18]
call fcn.00431730
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jne 0x469b6a
lea edx, [esp + 0xa8]
lea edi, [esp + 0x20]
call fcn.004040f0
xor ebx, ebx
lea edi, [esi + 0x40]
mov dword [esp + 0x28], 1
xor esi, esi
lea esp, [esp]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x469c7a
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jae 0x469c7a
test ecx, ecx
je 0x469bab
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x469bb0
call fcn.00578ff3
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x1c]
add eax, esi
mov eax, dword [eax]
push eax
push edx
call fcn.00579288
add esp, 8
test eax, eax
je 0x469bd1
add ebx, 1
add esi, 0x10
jmp 0x469b80
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x469be4
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x469be9
call fcn.00578ff3
mov eax, dword [edi + 4]
mov esi, ebx
shl esi, 4
cmp dword [eax + esi + 0xc], 0
je 0x469c17
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push 0x40
push 0x5bdca0
push 0x5c1c34
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x469d16
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push 0x24
push 0x5bdca0
push 0x5c1c54
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x469d16
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x469c4d
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x469c52
call fcn.00578ff3
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 4]
push 0x2000
push ebx
add eax, 0x28
push eax
mov ecx, 0xf000
mov dword [esi + edx + 0xc], 1
call fcn.0041dea0
jmp 0x469d16
lea ebx, [esp + 0x1c]
mov esi, edi
call fcn.0046a630
mov edx, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
push ebx
push ebx
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x469cbc
mov eax, dword [0x5fe658]
push 0xfc
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edx, dword [esi + 0x28]
push ebx
push ebx
add esi, 0x28
push 0x1004
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x20]
push edi
push ecx
push esi
mov edx, eax
mov ecx, 3
call fcn.0040a460
push 0x2000
push eax
push esi
mov ecx, 0xf000
call fcn.0041dea0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x4c8], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c8], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469d86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469da6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c8], 0xffffffff
mov eax, dword [esp + 0x40]
test eax, eax
je 0x469dbf
push eax
call fcn.00577358
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret