Function at 0x402090
Capabilities:
Check os version
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e102
mov eax, dword fs:[0]
push eax
sub esp, 0x734
mov eax, dword [0x51484c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x220]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x6f8], esi
call fcn.00464180
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40210f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed___d__n
call fcn.00462fb2
add esp, 8
xor al, al
jmp 0x402868
push str.Extracting_viewer_application..._n
call fcn.00462f0b
add esp, 4
lea ecx, [ebp - 0x340]
call fcn.00405500
lea ecx, [ebp - 0x70c]
mov dword [ebp - 4], ebx
call fcn.00405210
push 0x4c33f8
lea ecx, [ebp - 0x70c]
mov byte [ebp - 4], 1
call fcn.00405330
lea ecx, [ebp - 0x70c]
call fcn.00405420
push eax
lea ecx, [ebp - 0x340]
call fcn.004059a0
test al, al
jne 0x4021d9
lea ecx, [ebp - 0x6f0]
call fcn.00405210
lea edx, [ebp - 0x6f0]
push edx
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 2
call fcn.00405470
lea ecx, [ebp - 0x6f0]
call fcn.00405360
push eax
call fcn.00462f0b
push 0x4c3944
call fcn.00462f0b
add esp, 8
lea ecx, [ebp - 0x6f0]
mov byte [ebp - 4], 1
call fcn.004052b0
lea ecx, [ebp - 0x70c]
mov byte [ebp - 4], bl
call fcn.004052b0
lea ecx, [ebp - 0x340]
mov dword [ebp - 4], 0xffffffff
call fcn.004055a0
xor al, al
jmp 0x402868
lea ecx, [ebp - 0x71c]
call fcn.00405210
lea ecx, [ebp - 0x73c]
mov byte [ebp - 4], 3
call fcn.00405210
lea ecx, [ebp - 0x72c]
mov byte [ebp - 4], 4
call fcn.00405210
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00405360
push eax
lea ecx, [ebp - 0x72c]
call fcn.00405340
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x71c]
call fcn.00405330
push str.VideoViewer.zip
lea ecx, [ebp - 0x73c]
call fcn.00405330
lea ecx, [ebp - 0x71c]
call fcn.00405360
push eax
push str.Archive_being_opened:__s_n
call fcn.00462f0b
add esp, 8
lea ecx, [ebp - 0x73c]
call fcn.00405420
push eax
lea ecx, [ebp - 0x71c]
call fcn.00405420
push eax
lea ecx, [ebp - 0x340]
call fcn.00405a30
test al, al
jne 0x402303
push str.Failed_to_open_Video_Viewer_archive_resource..._n
call fcn.00462f0b
add esp, 4
lea ecx, [ebp - 0x6f0]
call fcn.00405210
lea ecx, [ebp - 0x6f0]
push ecx
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 6
call fcn.00405470
lea ecx, [ebp - 0x6f0]
call fcn.00405360
push eax
call fcn.00462f0b
push 0x4c3944
call fcn.00462f0b
add esp, 8
lea ecx, [ebp - 0x6f0]
mov byte [ebp - 4], 5
call fcn.004052b0
lea ecx, [ebp - 0x72c]
mov byte [ebp - 4], 4
call fcn.004052b0
lea ecx, [ebp - 0x73c]
mov byte [ebp - 4], 3
call fcn.004052b0
lea ecx, [ebp - 0x71c]
jmp 0x4021a9
lea ecx, [ebp - 0x72c]
call fcn.00405420
push eax
lea ecx, [ebp - 0x340]
call fcn.00405620
push ebx
mov ecx, esi
call fcn.00405420
push eax
lea ecx, [ebp - 0x340]
call fcn.004056b0
test eax, eax
jne 0x40238e
push str.Failed_to_extract_application_archive_resource..._n
call fcn.00462f0b
add esp, 4
lea ecx, [ebp - 0x6f0]
call fcn.00405210
lea edx, [ebp - 0x6f0]
push edx
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 7
call fcn.00405470
lea ecx, [ebp - 0x6f0]
call fcn.00405360
push eax
call fcn.00462f0b
push 0x4c3944
call fcn.00462f0b
add esp, 8
lea ecx, [ebp - 0x340]
call fcn.00405990
jmp 0x4022cb
push 0x114
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.00464180
push str.Checking_OS_version..._n
mov dword [ebp - 0x490], 0x114
call fcn.00462f0b
add esp, 0x10
lea ecx, [ebp - 0x490]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40280e
mov edx, dword [ebp - 0x488]
mov eax, dword [ebp - 0x48c]
push edx
push eax
push str.OS_version:__d._d_n
call fcn.00462f0b
add esp, 0xc
cmp dword [ebp - 0x480], 2
jne 0x40280e
cmp dword [ebp - 0x48c], 5
jne 0x40280e
cmp dword [ebp - 0x488], ebx
jne 0x40280e
push str.Detected_Windows_2000:_additional_processing_required..._n
call fcn.00462f0b
add esp, 4
mov dword [ebp - 0x6f0], ebx
mov dword [ebp - 0x6ec], ebx
mov dword [ebp - 0x6e8], ebx
mov bl, 8
mov eax, str.Microsoft.VC80.CRT
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403420
lea ecx, [ebp - 0x23c]
lea edi, [ebp - 0x6f0]
mov byte [ebp - 4], 9
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, str.Microsoft.VC80.MFC
lea ecx, [ebp - 0x23c]
call fcn.00403420
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xa
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, str.Microsoft.VC80.OpenMP
lea ecx, [ebp - 0x23c]
call fcn.00403420
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xb
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, str.Microsoft.VC100.CRT
lea ecx, [ebp - 0x23c]
call fcn.00403420
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xc
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, str.Microsoft.VC100.MFC
lea ecx, [ebp - 0x23c]
call fcn.00403420
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xd
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, str.Microsoft.VC100.OpenMP
lea ecx, [ebp - 0x23c]
call fcn.00403420
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xe
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, str._tools
lea ecx, [ebp - 0x23c]
call fcn.00403420
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xf
call fcn.00403650
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, dword [ebp - 0x6f0]
mov dword [ebp - 0x6f4], eax
cmp eax, dword [ebp - 0x6ec]
je 0x4027fd
mov ecx, dword [ebp - 0x6f4]
lea esi, [ebp - 0x23c]
call fcn.004033f0
mov ecx, dword [ebp - 0x6f8]
mov byte [ebp - 4], 0x10
call fcn.00405360
push eax
lea ecx, [ebp - 0x35c]
push ecx
mov ebx, esi
call fcn.004047f0
push eax
mov eax, 0x4c364c
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x11
call fcn.004048d0
add esp, 0xc
lea esi, [ebp - 0x35c]
mov byte [ebp - 4], 0x13
call fcn.00403460
mov eax, dword [ebp - 0x274]
mov ebx, 8
cmp dword [ebp - 0x260], ebx
jae 0x4025f9
lea eax, [ebp - 0x274]
push eax
push str.Searching_for_files_in__s_n
call fcn.00462f0b
mov eax, dword [ebp - 0x274]
add esp, 8
cmp dword [ebp - 0x260], ebx
jae 0x40261b
lea eax, [ebp - 0x274]
lea edx, [ebp - 0x6e0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x6fc], edi
cmp edi, 0xffffffff
je 0x4027c9
lea eax, [ebp - 0x6e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4027c9
lea esi, [ebp - 0x6b4]
call fcn.004014e0
test eax, eax
jne 0x4027b3
mov edi, dword [ebp - 0x6f8]
mov ecx, edi
call fcn.00405360
push eax
lea ecx, [ebp - 0x378]
push ecx
lea ebx, [ebp - 0x23c]
call fcn.004047f0
push eax
mov eax, 0x4c3654
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0x14
call fcn.004048d0
add esp, 0xc
lea esi, [ebp - 0x378]
mov byte [ebp - 4], 0x16
call fcn.00403460
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x6b4]
call fcn.00403490
mov ecx, edi
call fcn.00405360
lea ecx, [ebp - 0x258]
call fcn.00403420
lea eax, [ebp - 0x258]
push eax
mov eax, 0x4c3654
mov byte [ebp - 4], 0x17
call fcn.00403490
lea ecx, [ebp - 0x258]
push ecx
lea eax, [ebp - 0x6b4]
call fcn.00403490
mov eax, dword [ebp - 0x258]
mov esi, 8
cmp dword [ebp - 0x244], esi
jae 0x40270e
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x6b4]
push edx
push str.Found_file__s__moving_to__s_n
call fcn.00462f0b
mov ecx, dword [ebp - 0x258]
add esp, 0xc
cmp dword [ebp - 0x244], esi
jae 0x402737
lea ecx, [ebp - 0x258]
mov eax, dword [ebp - 0x290]
cmp dword [ebp - 0x27c], esi
jae 0x40274b
lea eax, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40278e
mov ecx, dword [ebp - 0x258]
cmp dword [ebp - 0x244], esi
jae 0x40276b
lea ecx, [ebp - 0x258]
mov eax, dword [ebp - 0x290]
cmp dword [ebp - 0x27c], esi
jae 0x40277f
lea eax, [ebp - 0x290]
push ecx
push eax
push str.Unable_to_move_the_file__s_to__s_n
call fcn.00462f0b
add esp, 0xc
lea esi, [ebp - 0x258]
call fcn.00403460
lea esi, [ebp - 0x290]
mov byte [ebp - 4], 0x13
call fcn.00403460
mov edi, dword [ebp - 0x6fc]
mov ebx, 8
lea eax, [ebp - 0x6e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402650
lea esi, [ebp - 0x274]
call fcn.00403460
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00403460
mov eax, dword [ebp - 0x6f4]
add eax, 0x1c
mov dword [ebp - 0x6f4], eax
cmp eax, dword [ebp - 0x6ec]
jne 0x40258a
lea ebx, [ebp - 0x6f0]
mov byte [ebp - 4], 5
call fcn.004039f0
xor ebx, ebx
lea ecx, [ebp - 0x340]
call fcn.00405990
lea ecx, [ebp - 0x72c]
mov byte [ebp - 4], 4
call fcn.004052b0
lea ecx, [ebp - 0x73c]
mov byte [ebp - 4], 3
call fcn.004052b0
lea ecx, [ebp - 0x71c]
mov byte [ebp - 4], 1
call fcn.004052b0
lea ecx, [ebp - 0x70c]
mov byte [ebp - 4], bl
call fcn.004052b0
lea ecx, [ebp - 0x340]
mov dword [ebp - 4], 0xffffffff
call fcn.004055a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462878
mov esp, ebp
pop ebp
ret