Function at 0x416611
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.0041e1c0
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [ebp + 8]
push 0x400
push ebx
push 0x434eac
mov dword [0x437e68], edi
call fcn.0041dd00
mov ecx, dword [0x437f10]
mov eax, dword [0x437f14]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [0x437e5c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jbe 0x41680c
mov cl, byte [esi]
cmp cl, 0x2d
je 0x416675
cmp cl, 0x2f
jne 0x4166d2
cmp byte [esi + 1], 0x25
jne 0x4166d2
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x41667e
mov byte [eax - 2], bl
dec eax
push eax
lea eax, [ebp - 0x230]
push dword [0x4313f4]
push 0x430bcc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x230]
push 1
push eax
call fcn.00418219
lea ecx, [ebp - 0x18]
call fcn.00401535
push edi
lea ecx, [ebp - 0x18]
call fcn.00401569
lea ecx, [ebp - 0x18]
call fcn.00401562
jmp 0x4169e5
cmp cl, 0x2d
je 0x4166dc
cmp cl, 0x2f
jne 0x416730
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x4166e9
cmp dl, 0x4b
jne 0x416730
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
add esi, 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
push esi
push dword [eax]
lea eax, [ebp - 0x12c]
push 0x430238
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x12c]
push 1
push eax
call fcn.004182f6
jmp 0x4169e5
cmp cl, 0x2d
je 0x41673e
cmp cl, 0x2f
jne 0x41680c
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x41674f
cmp cl, 0x47
jne 0x41680c
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x416752
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebp + eax - 0x12e]
lea eax, [ebp + eax - 0x12c]
cmp cl, 0x2d
mov dword [ebp + 8], ebx
je 0x4167a8
cmp cl, 0x2f
jne 0x4167bf
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x4167b5
cmp cl, 0x53
jne 0x4167bf
mov dword [ebp + 8], 1
mov byte [eax - 2], bl
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
mov byte [esi - 2], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00418b3d
add esp, 0xc
mov esi, eax
jmp 0x416a2a
cmp dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
jbe 0x416847
mov cl, byte [esi]
cmp cl, 0x2d
je 0x416821
cmp cl, 0x2f
jne 0x416847
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x41682e
cmp cl, 0x51
jne 0x416847
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp - 8], eax
je 0x416847
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4169ef
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00417df8
test eax, eax
je 0x4169ef
push esi
call fcn.00416a39
test al, al
pop ecx
je 0x4169ef
mov esi, 0xff
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0xa2f]
mov byte [ebp - 0xa30], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa30]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4169ef
lea eax, [ebp - 0x12c]
push eax
push ebx
lea eax, [ebp - 0xa30]
push 0x4301e4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x12c]
push ebx
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4169ef
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x62f]
mov byte [ebp - 0x630], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x122f]
mov byte [ebp - 0x1230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xe2f]
mov byte [ebp - 0xe30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1230]
push eax
lea eax, [ebp - 0x630]
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00417c1b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x630]
push 0x430d0c
push eax
call esi
push dword [0x43160c]
lea eax, [ebp - 0x630]
push eax
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xe30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x43160c]
lea eax, [ebp - 0xe30]
push eax
call esi
lea eax, [ebp - 0xe30]
push ebx
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x230]
push str._s__q__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x230]
push 1
push eax
call fcn.004182f6
test eax, eax
je 0x4169ef
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x416a32
call fcn.00417b06
lea ecx, [ebp - 0x28]
mov dword [0x437e64], ebx
mov dword [0x437e60], ebx
call fcn.00408de2
push dword [ebp - 8]
lea ecx, [ebp - 0x28]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00408e27
mov esi, dword [0x437e5c]
lea ecx, [ebp - 0x28]
call fcn.00408e12
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10