Function at 0x4012d0
Capabilities:
Create directory
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418c87
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x41f268]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
lea eax, [ebp - 0x2b0]
push eax
mov dword [ebp - 4], ebx
call fcn.00401ea0
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea esi, [ebp - 0x274]
call fcn.004178f5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00401c90
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], edi
jb 0x401382
mov edx, dword [ebp - 0x270]
push edx
call fcn.00408bbb
add esp, 4
cmp dword [ebp - 0x224], ebx
jne 0x40139c
push 8
push str.C:Temp_
lea ecx, [ebp - 0x238]
call fcn.00402350
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x4013b0
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push eax
call esi
push ebx
call fcn.00408c94
push edx
push eax
lea eax, [ebp - 0x274]
push str.VFSWF_i_
push eax
call fcn.00417860
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.00402240
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], edi
jb 0x401404
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00408bbb
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x401418
lea eax, [ebp - 0x234]
push ebx
push eax
call esi
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x401430
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40148c
push ebx
push str.SetCurrentDirectory_failed
push str.Unable_to_set_Working_Directory
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esi, [ebp - 0x2b0]
mov byte [ebp - 4], 5
call fcn.00402130
mov edx, dword [ebp - 0x2b0]
push edx
call fcn.00408bbb
add esp, 4
cmp dword [ebp - 0x220], edi
jb 0x401482
mov eax, dword [ebp - 0x234]
push eax
call fcn.00408bbb
add esp, 4
mov eax, 1
jmp 0x4018e7
push 6
push str.source
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
call fcn.00402350
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x224]
dec ecx
push ecx
xor ecx, ecx
lea esi, [ebp - 0x290]
lea edx, [ebp - 0x238]
call fcn.00401a90
mov esi, eax
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 7
call fcn.00401ac0
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00401c90
cmp dword [ebp - 0x278], edi
jb 0x40150d
mov eax, dword [ebp - 0x28c]
push eax
call fcn.00408bbb
add esp, 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
cmp dword [ebp - 0x23c], edi
jb 0x40153e
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00408bbb
add esp, 4
push 0x104
lea edx, [ebp - 0x118]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2b0]
push eax
mov edi, 1
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2bc], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x238]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401c90
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 8
lea eax, [ebp - 0x118]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [ebp - 0x2b8], esp
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4015b0
sub eax, edx
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00402350
mov byte [ebp - 4], 2
call fcn.004043f0
add esp, 0x40
cmp al, bl
jne 0x4015f5
push ebx
push str.Invalid_Archive_
push str.Error_in_unpacking_archive._Please_download_the_program_one_more_time.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x258], edi
jmp 0x4017f0
mov eax, 0xf
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
mov byte [ebp - 4], 9
push 0xc
push str.executable32
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
call fcn.00402350
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0xa
call fcn.00401ac0
lea edx, [ebp - 0x2b0]
push edx
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00404bf0
add esp, 0xc
push eax
lea ecx, [ebp - 0x238]
push ecx
lea esi, [ebp - 0x2d8]
mov byte [ebp - 4], 0xb
call fcn.00403470
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xc
call fcn.00401c90
cmp dword [ebp - 0x2c0], 0x10
jb 0x4016a6
mov edx, dword [ebp - 0x2d4]
push edx
call fcn.00408bbb
add esp, 4
cmp dword [ebp - 0x25c], 0x10
mov esi, 0xf
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2d4], bl
jb 0x4016d5
mov eax, dword [ebp - 0x270]
push eax
call fcn.00408bbb
add esp, 4
cmp dword [ebp - 0x278], 0x10
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
jb 0x4016ff
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.00408bbb
add esp, 4
push 0x3c
lea edx, [ebp - 0x314]
push ebx
push edx
call fcn.0040a010
mov esi, 0x10
add esp, 0xc
mov dword [ebp - 0x314], 0x3c
mov dword [ebp - 0x310], 0x40
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x2f8], edi
cmp dword [ebp - 0x23c], esi
jb 0x40174c
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x304], eax
jmp 0x401758
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x304], ecx
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x300], 0x41aded
mov dword [ebp - 0x2fc], edx
cmp dword [ebp - 0x240], ebx
je 0x4017c1
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4017c1
mov ecx, dword [ebp - 0x2dc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4017b2
push ebx
push str.WaitForSingleObject_failed
push str.Unable_to_wait_for_process
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x258], edi
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4017d9
push ebx
push str.ShellExecuteEx_failed
push str.Unable_to_spawn_process
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x258], edi
cmp dword [ebp - 0x23c], esi
jb 0x4017f0
mov eax, dword [ebp - 0x250]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x224]
push 1
add ecx, 0xfffffffe
lea edi, [ebp - 0x238]
call fcn.00401d80
push eax
xor ecx, ecx
lea esi, [ebp - 0x274]
mov edx, edi
call fcn.00401a90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xe
call fcn.00401c90
mov esi, 0x10
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x25c], esi
jb 0x401863
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00408bbb
add esp, 4
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], esi
jae 0x401877
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebp - 0x238]
push edx
call fcn.0041793e
add esp, 4
cmp dword [ebp - 0x23c], esi
jb 0x4018a4
mov eax, dword [ebp - 0x250]
push eax
call fcn.00408bbb
add esp, 4
mov dword [ebp - 4], 1
lea esi, [ebp - 0x2b0]
mov byte [ebp - 4], 0x10
call fcn.00402130
mov ecx, dword [ebp - 0x2b0]
push ecx
call fcn.00408bbb
add esp, 4
cmp dword [ebp - 0x220], 0x10
jb 0x4018e1
mov edx, dword [ebp - 0x234]
push edx
call fcn.00408bbb
add esp, 4
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004088c0
mov esp, ebp
pop ebp
ret 0x10