Function at 0x401b58
Capabilities:
Copy file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
mov eax, 0x452c9c
call fcn.00446ab4
push 0xff
lea edx, [ebp - 0x1b8]
push edx
push str.ProgramFiles
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov word [ebp - 0x98], 0x14
lea eax, [ebp - 0x14]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x45244a
lea eax, [ebp - 0x10]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x1b8]
lea eax, [ebp - 0xc]
call fcn.00450b38
inc dword [ebp - 0x8c]
pop edx
pop ecx
call fcn.00450bf0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x45244c
lea eax, [ebp - 0x18]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x18]
pop ecx
pop eax
call fcn.00450bf0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x452451
lea eax, [ebp - 0x20]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x20]
pop ecx
pop eax
call fcn.00450bf0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x452453
lea eax, [ebp - 0x28]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x28]
pop ecx
pop eax
call fcn.00450bf0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x34]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x452458
lea eax, [ebp - 0x30]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x30]
pop ecx
pop eax
call fcn.00450bf0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 4]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
mov edx, 0x452330
pop eax
call fcn.00450bf0
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 8
lea eax, [ebp - 4]
call fcn.00401ae8
push eax
push str.InstallPath_is__s_n
call fcn.004483e8
add esp, 8
mov word [ebp - 0x98], 0x20
lea eax, [ebp - 0x38]
call fcn.00401ab8
mov edx, eax
inc dword [ebp - 0x8c]
mov ecx, dword [0x457500]
mov eax, dword [ecx]
call fcn.004209c8
lea edx, [ebp - 0x38]
push dword [edx]
lea eax, [ebp - 8]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x45246d
lea eax, [ebp - 0x3c]
call fcn.00450b38
inc dword [ebp - 0x8c]
mov edx, dword [eax]
pop ecx
pop eax
call fcn.0043c7b8
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40ceb8]
call fcn.004023d0
mov dword [ebp - 0xac], eax
mov dl, 1
mov eax, dword [0x431448]
call fcn.0040247c
mov dword [ebp - 0xb0], eax
mov word [ebp - 0x98], 0x2c
mov edx, str.Files
lea eax, [ebp - 0x40]
call fcn.00450b38
inc dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
mov ebx, dword [eax]
call dword [ebx + 0x38]
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00450bac
xor ecx, ecx
mov dword [ebp - 0xb4], ecx
mov word [ebp - 0x98], 8
jmp 0x401ffb
mov word [ebp - 0x98], 0x44
lea eax, [ebp - 0x50]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x452478
lea eax, [ebp - 0x48]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x48]
lea eax, [ebp - 4]
pop ecx
call fcn.00450bf0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x44]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
pop eax
pop edx
call fcn.00450bf0
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 0x38
mov eax, dword [ebp - 0x44]
call fcn.0043c728
test al, al
je 0x401fd9
push dword [ebp - 0x44]
call fcn.00403320
pop ecx
dec eax
jne 0x401fd9
lea eax, [ebp - 0x44]
call fcn.00401ae8
push eax
push str.file__s_is_excuting_cant_be_overwritten._n
call fcn.004483e8
add esp, 8
mov eax, dword [ebp - 0xb4]
push eax
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00450bac
pop eax
mov edx, dword [ebp - 0xa8]
mov dword fs:[0], edx
jmp 0x4023cb
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 8
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0xb4]
jg 0x401e9f
mov word [ebp - 0x98], 0x50
lea eax, [ebp - 0x54]
call fcn.00401ab8
mov edx, eax
inc dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.0043c84c
lea eax, [ebp - 0x54]
mov eax, dword [eax]
call fcn.0043c92c
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00450bac
mov eax, dword [ebp - 4]
call fcn.0043c92c
lea eax, [ebp - 4]
call fcn.00401ae8
push eax
push str.CreateDir:__s_n
call fcn.004483e8
add esp, 8
xor edx, edx
mov dword [ebp - 0xb8], edx
mov word [ebp - 0x98], 8
jmp 0x4022ec
mov word [ebp - 0x98], 0x68
lea eax, [ebp - 0x68]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb0]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
call fcn.00401ab8
push eax
inc dword [ebp - 0x8c]
mov edx, 0x4524b4
lea eax, [ebp - 0x60]
call fcn.00450b38
inc dword [ebp - 0x8c]
lea edx, [ebp - 0x60]
lea eax, [ebp - 4]
pop ecx
call fcn.00450bf0
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x58]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
pop eax
pop edx
call fcn.00450bf0
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 0x5c
mov word [ebp - 0x98], 0x74
lea eax, [ebp - 0x74]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb0]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
call fcn.00401ab8
mov edx, eax
inc dword [ebp - 0x8c]
mov ecx, dword [0x457500]
mov eax, dword [ecx]
call fcn.004209c8
lea edx, [ebp - 0x6c]
push dword [edx]
lea eax, [ebp - 0x70]
call fcn.00401ab8
mov edx, eax
inc dword [ebp - 0x8c]
pop eax
call fcn.0043c84c
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x5c]
call fcn.00401ab8
mov ecx, eax
inc dword [ebp - 0x8c]
pop eax
pop edx
call fcn.00450bf0
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 0x5c
mov eax, dword [ebp - 0x5c]
call fcn.0043c728
test al, al
jne 0x402288
lea eax, [ebp - 0x5c]
call fcn.00401ae8
push eax
push str.No_file:__s_for_copying._n
call fcn.004483e8
add esp, 8
mov eax, dword [ebp - 0xb8]
push eax
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00450bac
pop eax
mov edx, dword [ebp - 0xa8]
mov dword fs:[0], edx
jmp 0x4023cb
push 0
lea eax, [ebp - 0x58]
call fcn.00401ae8
push eax
lea eax, [ebp - 0x5c]
call fcn.00401ae8
push eax
call sub.KERNEL32.DLL_CopyFileA
lea eax, [ebp - 0x5c]
call fcn.00401ae8
push eax
push str.CopyFile:__s_n
call fcn.004483e8
add esp, 8
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00450bac
mov word [ebp - 0x98], 8
inc dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0xb8]
jg 0x402084
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
push str.copy_completed___d_file_s__has_been_copied_n
call fcn.004483e8
add esp, 8
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0
je 0x402352
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
mov dword [ebp - 0x78], edx
mov word [ebp - 0x98], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x98], 0x80
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x402394
mov edx, dword [ebp - 0x84]
mov ecx, dword [edx]
mov dword [ebp - 0x80], ecx
mov word [ebp - 0x98], 0xa4
mov edx, 3
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x98], 0x98
xor eax, eax
push eax
dec dword [ebp - 0x8c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00450bac
dec dword [ebp - 0x8c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00450bac
pop eax
mov edx, dword [ebp - 0xa8]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret