Function at 0x1003229
Capabilities:
Accept command line arguments
Check os version
Copy file
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov edi, 0x104
push edi
xor eax, eax
push 0x40
pop ebx
push ebx
mov dword [0x100c294], 1
mov dword [0x100c29c], eax
mov dword [0x100c298], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
call esi
push edi
push ebx
mov dword [ebp - 8], eax
call esi
push 0x94
push ebx
mov dword [ebp - 0x44], eax
call esi
push edi
push ebx
mov dword [ebp - 0x54], eax
call esi
push edi
push ebx
mov dword [ebp - 0xc], eax
call esi
push edi
push ebx
mov dword [ebp - 0x30], eax
call esi
push edi
push ebx
mov dword [ebp - 4], eax
call esi
push edi
push ebx
mov dword [ebp - 0x1c], eax
call esi
push edi
push ebx
mov dword [ebp - 0x34], eax
call esi
push edi
push ebx
mov dword [ebp - 0x38], eax
call esi
push edi
push ebx
mov dword [ebp - 0x3c], eax
call esi
push edi
push ebx
mov dword [ebp - 0x2c], eax
call esi
push edi
push ebx
mov dword [ebp - 0x48], eax
call esi
push edi
push ebx
mov dword [ebp - 0x10], eax
call esi
push edi
push ebx
mov dword [ebp - 0x20], eax
call esi
push 4
push ebx
mov dword [ebp - 0x4c], eax
call esi
mov ecx, eax
mov dword [0x100c298], eax
call fcn.01008982
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call main
add eax, 0x10b
push eax
push ebx
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
push ebx
call esi
push dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
push ebx
call esi
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x24], eax
je 0x1003821
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
je 0x1003821
cmp dword [ebp - 0x38], ecx
je 0x1003821
cmp dword [ebp - 0x3c], ecx
je 0x1003821
cmp dword [ebp - 0xc], ecx
je 0x1003821
cmp dword [ebp - 0x2c], ecx
je 0x1003821
mov esi, dword [ebp - 0x48]
cmp esi, ecx
je 0x1003821
cmp dword [ebp - 4], ecx
je 0x1003821
mov ebx, dword [ebp - 0x1c]
cmp ebx, ecx
je 0x1003821
cmp dword [ebp - 0x40], ecx
je 0x1003821
cmp dword [ebp - 0x50], ecx
je 0x1003821
cmp eax, ecx
je 0x1003821
cmp dword [ebp - 0x10], ecx
je 0x1003821
cmp dword [ebp - 0x20], ecx
je 0x1003821
cmp dword [ebp - 0x4c], ecx
je 0x1003821
mov eax, dword [ebp - 0x54]
cmp eax, ecx
je 0x1003821
cmp dword [ebp - 8], ecx
je 0x1003821
cmp dword [ebp - 0x44], ecx
je 0x1003821
push eax
mov dword [eax], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov byte [ebx], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov byte [eax], 0
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov byte [esi], 0
mov byte [eax], 0
mov eax, dword [ebp - 0x34]
mov byte [eax], 0
mov eax, dword [ebp - 0x38]
mov byte [eax], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x40]
call ebx
push eax
call fcn.01001f75
mov dword [ebp - 0x28], eax
call fcn.0100177f
test eax, eax
jne 0x100341e
push dword [ebp - 0x28]
call fcn.01003098
jmp 0x1003825
push dword [ebp - 0x10]
push 0x100114c
push 0x81
push 0
call fcn.01001bdd
mov esi, dword [ebp - 4]
push edi
push esi
call fcn.010019c7
call fcn.0100241a
cmp dword [0x100c2a4], 0
je 0x100345c
push 0
push 0x1001560
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.01001714
push 8
inc eax
push 0x1001554
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
xor ebx, ebx
inc ebx
test eax, eax
jne 0x1003487
mov dword [ebp - 0x18], ebx
push edi
push esi
call fcn.010019c7
call fcn.010023c6
test eax, eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x68], eax
push edi
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
je 0x10034b4
cmp dword [ebp - 0x28], 0
je 0x10034b0
push 8
jmp 0x10034b6
push 7
jmp 0x10034b6
push 0
call fcn.0100238b
push ebx
push dword [ebp - 0x3c]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
push 6
call fcn.0100238b
push dword [ebp - 0x3c]
push 0x1001540
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 2
push 0
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0x60], eax
je 0x10035d3
push dword [ebp - 0x20]
push 0x100115c
push 0xca
push eax
call fcn.01001bdd
test eax, eax
je 0x10035ca
cmp dword [ebp - 0x68], 0
je 0x1003527
push dword [ebp - 0x20]
push 0x100152c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push dword [ebp - 0x48]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x20]
push ebx
call fcn.0100238b
push 2
push 0
push dword [ebp - 8]
call esi
push 0
push dword [ebp - 0x2c]
mov esi, eax
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x20]
push 5
call fcn.0100238b
test esi, esi
je 0x10035ca
mov ebx, dword [ebp - 0x4c]
push ebx
push 0x1001168
push 0x81
push esi
call fcn.01001bdd
test eax, eax
je 0x10035c3
push 0
push dword [ebp - 0x30]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push 2
call fcn.0100238b
cmp dword [ebp - 0x18], 0
je 0x10035c3
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x10], 2
je 0x10035c3
push 0
push dword [ebp - 0x34]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push 3
call fcn.0100238b
push 0
push dword [ebp - 0x38]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push 4
call fcn.0100238b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push dword [ebp - 0x44]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebp - 0x28], esi
mov eax, 0x10012bc
jne 0x10035ef
mov eax, 0x1001524
push eax
push 0x1001514
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [ebp - 0x18], esi
jne 0x1003668
push edi
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x2e
push dword [ebp - 4]
call fcn.01001714
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x1001510
inc eax
push ebx
push eax
call esi
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x1c]
call fcn.0100165d
push 0x2e
push dword [ebp - 0x1c]
call fcn.01001714
inc eax
push ebx
push eax
call esi
push 0x5c
push dword [ebp - 0x1c]
call fcn.01001714
inc eax
push eax
push 0x10014fc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x10036a9
cmp dword [0x100c294], esi
je 0x10036a9
mov ebx, dword [ebp - 0x50]
cmp byte [ebx], 0
je 0x10036a9
xor esi, esi
jmp 0x1003693
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x44]
push dword [ebp - 0x24]
call fcn.010020bc
inc esi
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push ebx
push esi
call fcn.010022d2
test eax, eax
jne 0x1003681
jmp 0x1003704
cmp dword [ebp - 0x18], esi
je 0x10036b3
cmp dword [ebp - 0x28], esi
jne 0x1003704
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.0100165d
cmp dword [ebp - 0x18], esi
je 0x10036ef
mov esi, dword [ebp - 0x2c]
push edi
push esi
call fcn.010019c7
push dword [0x100a014]
push esi
call main
mov ecx, edi
sub ecx, eax
push ecx
push esi
call fcn.01001696
mov eax, esi
jmp 0x10036f2
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x24]
call fcn.010020bc
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp - 0xc]
cmp byte [esi], 0
je 0x1003734
jmp 0x100372a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1003734
cmp dword [ebp - 0x58], 0x1e
jae 0x1003734
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x58]
push esi
call fcn.01001d8c
test eax, eax
je 0x100370e
mov eax, dword [ebp - 0x48]
cmp byte [eax], 0
je 0x1003742
push eax
call fcn.01001d8c
mov eax, dword [ebp - 0x3c]
cmp byte [eax], 0
je 0x1003750
push eax
call fcn.01001d8c
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x100375c
cmp dword [ebp - 0x28], ebx
je 0x100376d
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x100376d
push eax
call fcn.01001d8c
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x18], ebx
jne 0x1003777
mov eax, dword [ebp - 0x1c]
jmp 0x10037a0
cmp dword [ebp - 0x28], ebx
je 0x10037ab
cmp dword [ebp - 0x64], ebx
je 0x10037ab
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x100378f
push eax
call fcn.01001d8c
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
je 0x100379d
push eax
call fcn.01001d8c
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
je 0x10037ab
push eax
call fcn.01001d8c
mov esi, dword [ebp - 8]
push edi
push esi
call fcn.010019c7
push esi
push edi
push dword [ebp - 4]
call fcn.0100165d
push dword [ebp - 0x10]
push esi
call main
mov ecx, edi
sub ecx, eax
push ecx
push esi
call fcn.01001696
push esi
call fcn.01001d8c
push dword [ebp - 4]
push edi
push esi
call fcn.0100165d
push dword [ebp - 0x20]
push esi
call main
mov ecx, edi
sub ecx, eax
push ecx
push esi
call fcn.01001696
push esi
call fcn.01001d8c
push dword [ebp - 4]
push edi
push esi
call fcn.0100165d
push dword [ebp - 0x4c]
push esi
call main
sub edi, eax
push edi
push esi
call fcn.01001696
push esi
call fcn.01001d8c
jmp 0x1003827
or dword [ebp - 0x5c], 0xffffffff
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x1003837
push dword [ebp - 0x30]
call esi
cmp dword [ebp - 0x34], ebx
je 0x1003841
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x38], ebx
je 0x100384b
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x3c], ebx
je 0x1003855
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0xc], ebx
je 0x100385f
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x1003869
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x48], ebx
je 0x1003873
push dword [ebp - 0x48]
call esi
cmp dword [ebp - 4], ebx
je 0x100387d
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x1003887
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x10], ebx
je 0x1003891
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x20], ebx
je 0x100389b
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x4c], ebx
je 0x10038a5
push dword [ebp - 0x4c]
call esi
cmp dword [ebp - 0x40], ebx
je 0x10038af
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x50], ebx
je 0x10038b9
push dword [ebp - 0x50]
call esi
cmp dword [ebp - 0x24], ebx
je 0x10038c3
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x54], ebx
je 0x10038cd
push dword [ebp - 0x54]
call esi
cmp dword [ebp - 8], ebx
je 0x10038d7
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x44], ebx
je 0x10038e1
push dword [ebp - 0x44]
call esi
mov ecx, dword [0x100c298]
cmp ecx, ebx
je 0x10038f8
call fcn.010089ae
push dword [0x100c298]
call esi
mov eax, dword [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret 0x10