Function at 0x402070
Capabilities:
Check os version
Enumerate files on windows
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47d0d1
mov eax, dword fs:[0]
push eax
sub esp, 0x744
mov eax, dword [0x536400]
xor eax, esp
mov dword [esp + 0x740], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536400]
xor eax, esp
push eax
lea eax, [esp + 0x758]
mov dword fs:[0], eax
push 0x20a
xor ebp, ebp
lea eax, [esp + 0x548]
mov esi, ecx
push ebp
push eax
mov dword [esp + 0x48], esi
call fcn.00463870
add esp, 0xc
push 0x104
lea ecx, [esp + 0x548]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4020fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed___d__n
call fcn.00462497
add esp, 8
xor al, al
jmp 0x4028b4
push str.Extracting_viewer_application..._n
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x84]
call fcn.00405d90
lea ecx, [esp + 0x44]
mov dword [esp + 0x760], ebp
call fcn.00406510
push str.CHARLESLAMZIP_tctQOfL95Ol2
lea ecx, [esp + 0x48]
mov byte [esp + 0x764], 1
call fcn.00406650
lea ecx, [esp + 0x44]
call fcn.004066b0
push eax
lea ecx, [esp + 0x88]
call fcn.004062c0
test al, al
jne 0x4021da
lea ecx, [esp + 0x1c]
call fcn.00406510
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x764], 2
call fcn.00405cf0
lea ecx, [esp + 0x1c]
call fcn.004066d0
push eax
call fcn.004629da
add esp, 4
push 0x4c411c
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x760], 1
call fcn.004065c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x760], 0
call fcn.004065c0
lea ecx, [esp + 0x84]
mov dword [esp + 0x760], 0xffffffff
call fcn.00405e30
xor al, al
jmp 0x4028b4
lea ecx, [esp + 0x54]
call fcn.00406510
lea ecx, [esp + 0x74]
mov byte [esp + 0x760], 3
call fcn.00406510
lea ecx, [esp + 0x64]
mov byte [esp + 0x760], 4
call fcn.00406510
mov ecx, esi
mov byte [esp + 0x760], 5
call fcn.004066d0
push eax
lea ecx, [esp + 0x68]
call fcn.00406660
lea eax, [esp + 0x544]
push eax
lea ecx, [esp + 0x58]
call fcn.00406650
push str.VideoViewer.zip
lea ecx, [esp + 0x78]
call fcn.00406650
lea ecx, [esp + 0x54]
call fcn.004066d0
push eax
push 0x4c4120
call fcn.004629da
add esp, 8
lea ecx, [esp + 0x74]
call fcn.004066b0
push eax
lea ecx, [esp + 0x58]
call fcn.004066b0
push eax
lea ecx, [esp + 0x8c]
call fcn.004062d0
test al, al
jne 0x402306
push str.Failed_to_open_Video_Viewer_archive_resource..._n
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00406510
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0x764], 6
call fcn.00405cf0
lea ecx, [esp + 0x1c]
call fcn.004066d0
push eax
call fcn.004629da
add esp, 4
push 0x4c411c
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x760], 5
call fcn.004065c0
lea ecx, [esp + 0x64]
mov byte [esp + 0x760], 4
call fcn.004065c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x760], 3
call fcn.004065c0
lea ecx, [esp + 0x54]
jmp 0x40219e
lea ecx, [esp + 0x64]
call fcn.004066b0
push eax
lea ecx, [esp + 0x88]
call fcn.00405ec0
push ebp
mov ecx, esi
call fcn.004066b0
push eax
lea ecx, [esp + 0x8c]
call fcn.00405f60
test eax, eax
jne 0x402394
push str.Failed_to_extract_application_archive_resource..._n
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00406510
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x764], 7
call fcn.00405cf0
lea ecx, [esp + 0x1c]
call fcn.004066d0
push eax
call fcn.004629da
add esp, 4
push 0x4c411c
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x84]
call fcn.004062b0
jmp 0x4022ca
push 0x114
lea eax, [esp + 0x1e0]
push ebp
push eax
call fcn.00463870
add esp, 0xc
push str.Checking_OS_version..._n
mov dword [esp + 0x1e0], 0x114
call fcn.004629da
add esp, 4
lea ecx, [esp + 0x1dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40284b
mov edx, dword [esp + 0x1e4]
mov eax, dword [esp + 0x1e0]
push edx
push eax
push str.OS_version:__d._d_n
call fcn.004629da
add esp, 0xc
cmp dword [esp + 0x1ec], 2
jne 0x40284b
cmp dword [esp + 0x1e0], 5
jne 0x40284b
cmp dword [esp + 0x1e4], ebp
jne 0x40284b
push str.Detected_Windows_2000:_additional_processing_required..._n
call fcn.004629da
add esp, 4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov bl, 8
mov edx, str.Microsoft.VC80.CRT
lea eax, [esp + 0x16c]
mov byte [esp + 0x760], bl
call fcn.00403570
lea ecx, [esp + 0x16c]
push ecx
lea esi, [esp + 0x30]
mov byte [esp + 0x764], 9
call fcn.004036f0
lea esi, [esp + 0x16c]
mov byte [esp + 0x760], bl
call fcn.004035e0
mov edx, str.Microsoft.VC80.MFC
lea eax, [esp + 0x16c]
call fcn.00403570
lea edx, [esp + 0x16c]
push edx
lea esi, [esp + 0x30]
mov byte [esp + 0x764], 0xa
call fcn.004036f0
lea esi, [esp + 0x16c]
mov byte [esp + 0x760], bl
call fcn.004035e0
mov edx, str.Microsoft.VC80.OpenMP
lea eax, [esp + 0x16c]
call fcn.00403570
lea eax, [esp + 0x16c]
push eax
lea esi, [esp + 0x30]
mov byte [esp + 0x764], 0xb
call fcn.004036f0
lea esi, [esp + 0x16c]
mov byte [esp + 0x760], bl
call fcn.004035e0
mov edx, str._tools
lea eax, [esp + 0x16c]
call fcn.00403570
lea ecx, [esp + 0x16c]
push ecx
lea esi, [esp + 0x30]
mov byte [esp + 0x764], 0xc
call fcn.004036f0
lea esi, [esp + 0x16c]
mov byte [esp + 0x760], bl
call fcn.004035e0
lea esi, [esp + 0x14]
lea edi, [esp + 0x2c]
call fcn.004036b0
lea esi, [esp + 0x1c]
lea edi, [esp + 0x2c]
call fcn.004036d0
mov edi, dword [esp + 0x14]
cmp edi, ebp
mov esi, eax
je 0x40255c
cmp edi, dword [esi]
je 0x402561
call fcn.004627a8
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 4]
je 0x40283a
cmp edi, ebp
jne 0x402577
call fcn.004627a8
cmp ebx, dword [edi + 8]
jb 0x402581
call fcn.004627a8
push ebx
lea esi, [esp + 0x170]
call fcn.004035b0
mov ebp, dword [esp + 0x3c]
mov edx, esi
push edx
mov ecx, ebp
mov byte [esp + 0x764], 0xd
call fcn.004066d0
mov edx, eax
lea edi, [esp + 0x138]
call fcn.00405790
add esp, 4
push eax
mov ebx, 0x4c3ca0
lea esi, [esp + 0x1c4]
mov byte [esp + 0x764], 0xe
call fcn.00405840
add esp, 4
mov esi, edi
mov byte [esp + 0x760], 0x10
call fcn.004035e0
mov eax, dword [esp + 0x1c4]
mov ebx, 8
cmp dword [esp + 0x1d8], ebx
jae 0x4025fd
lea eax, [esp + 0x1c4]
push eax
push str.Searching_for_files_in__s_n
call fcn.004629da
mov eax, dword [esp + 0x1cc]
add esp, 8
cmp dword [esp + 0x1d8], ebx
jae 0x402622
lea eax, [esp + 0x1c4]
lea ecx, [esp + 0x2f4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x40], edi
je 0x4027fd
lea edx, [esp + 0x2f4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4027fd
jmp 0x402660
lea esi, [esp + 0x320]
call fcn.004015c0
test eax, eax
jne 0x4027e6
lea eax, [esp + 0x16c]
push eax
mov ecx, ebp
call fcn.004066d0
mov edx, eax
lea edi, [esp + 0x154]
call fcn.00405790
add esp, 4
push eax
mov ebx, 0x4c3ca8
lea esi, [esp + 0x1a8]
mov byte [esp + 0x764], 0x11
call fcn.00405840
add esp, 4
mov esi, edi
mov byte [esp + 0x760], 0x13
call fcn.004035e0
lea ecx, [esp + 0x1a4]
push ecx
lea edx, [esp + 0x324]
call fcn.00403610
mov ecx, ebp
call fcn.004066d0
mov edx, eax
lea eax, [esp + 0x188]
call fcn.00403570
lea edx, [esp + 0x188]
push edx
mov edx, ebx
mov byte [esp + 0x764], 0x14
call fcn.00403610
lea eax, [esp + 0x188]
push eax
lea edx, [esp + 0x324]
call fcn.00403610
mov eax, dword [esp + 0x18c]
mov esi, 8
cmp dword [esp + 0x1a0], esi
jae 0x402730
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x324]
push ecx
push str.Found_file__s__moving_to__s_n
call fcn.004629da
mov ecx, dword [esp + 0x198]
add esp, 0xc
cmp dword [esp + 0x1a0], esi
jae 0x40275d
lea ecx, [esp + 0x18c]
cmp dword [esp + 0x1bc], esi
mov eax, dword [esp + 0x1a8]
jae 0x402774
lea eax, [esp + 0x1a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4027bd
cmp dword [esp + 0x1a0], esi
mov ecx, dword [esp + 0x18c]
jae 0x402797
lea ecx, [esp + 0x18c]
cmp dword [esp + 0x1bc], esi
mov eax, dword [esp + 0x1a8]
jae 0x4027ae
lea eax, [esp + 0x1a8]
push ecx
push eax
push str.Unable_to_move_the_file__s_to__s_n
call fcn.004629da
add esp, 0xc
lea esi, [esp + 0x188]
call fcn.004035e0
lea esi, [esp + 0x1a4]
mov byte [esp + 0x760], 0x10
call fcn.004035e0
mov edi, dword [esp + 0x40]
mov ebx, 8
lea edx, [esp + 0x2f4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402660
lea esi, [esp + 0x1c0]
call fcn.004035e0
lea esi, [esp + 0x16c]
mov byte [esp + 0x760], bl
call fcn.004035e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 8]
jb 0x40282e
call fcn.004627a8
add dword [esp + 0x18], 0x1c
xor ebp, ebp
jmp 0x402541
lea esi, [esp + 0x2c]
mov byte [esp + 0x760], 5
call fcn.00403670
lea ecx, [esp + 0x84]
call fcn.004062b0
lea ecx, [esp + 0x64]
mov byte [esp + 0x760], 4
call fcn.004065c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x760], 3
call fcn.004065c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x760], 1
call fcn.004065c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x760], 0
call fcn.004065c0
lea ecx, [esp + 0x84]
mov dword [esp + 0x760], 0xffffffff
call fcn.00405e30
mov al, 1
mov ecx, dword [esp + 0x758]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x740]
xor ecx, esp
call fcn.0046255c
add esp, 0x750
ret