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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x605171
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
push 0
push 0x629420
push 0x1004
push 0x6244e0
push 0
push 1
lea eax, [esp + 0x44]
mov esi, ecx
push eax
mov dword [esp + 0x30], esi
call fcn.0041ece0
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.0041ec10
cmp eax, 1
jne 0x4652e6
lea edi, [esp + 0x1c]
call fcn.004649a0
lea eax, [esp + 0xa8]
mov byte [esp + 0x4c8], 1
lea edx, [eax + 2]
jmp 0x464fe0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464fe0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xa8]
mov ebx, eax
push ecx
lea eax, [esp + 0x20]
call fcn.004037a0
lea edi, [esp + 0x1c]
call fcn.00431780
lea eax, [esp + 0x2a8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465015
sub eax, edx
sar eax, 1
lea edx, [esp + 0x2a8]
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.004037a0
lea edi, [esp + 0x24]
call fcn.00431780
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
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 0x465087
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2b0]
push eax
call fcn.00465860
lea edi, [esp + 0x18]
call fcn.00431780
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jne 0x4650aa
lea edx, [esp + 0xa8]
lea edi, [esp + 0x20]
call fcn.00403760
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 0x4651ba
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jae 0x4651ba
test ecx, ecx
je 0x4650eb
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x4650f0
call fcn.005d29f1
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x1c]
add eax, esi
mov eax, dword [eax]
push eax
push edx
call fcn.005d2da6
add esp, 8
test eax, eax
je 0x465111
add ebx, 1
add esi, 0x10
jmp 0x4650c0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x465124
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x465129
call fcn.005d29f1
mov eax, dword [edi + 4]
mov esi, ebx
shl esi, 4
cmp dword [eax + esi + 0xc], 0
je 0x465157
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
push 0x40
push 0x625b68
push 0x62945c
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x465256
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push 0x24
push 0x625b68
push 0x62947c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x465256
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x46518d
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x465192
call fcn.005d29f1
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.0041a530
jmp 0x465256
lea ebx, [esp + 0x1c]
mov esi, edi
call fcn.00465b90
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 0x4651fc
mov eax, dword [0x678fd0]
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.00403410
push 0x2000
push eax
push esi
mov ecx, 0xf000
call fcn.0041a530
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 0x46527e
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 0x4652a6
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 0x4652c6
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 0x4652e6
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 0x4652ff
push eax
call fcn.005d1311
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.005d28b3
mov esp, ebp
pop ebp
ret