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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
push ebx
push esi
mov ebx, 0x400
push edi
mov edi, dword [ebp + 8]
push ebx
push 0
push 0x42bab4
mov dword [0x42ea64], edi
call fcn.00416f30
mov ecx, dword [0x42eb1c]
and dword [0x42ea5c], 0
mov eax, dword [0x42eb20]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jbe 0x410ae4
mov cl, byte [esi]
cmp cl, 0x2d
je 0x41094a
cmp cl, 0x2f
jne 0x4109a8
cmp byte [esi + 1], 0x25
jne 0x4109a8
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x410953
and byte [eax - 2], 0
dec eax
push eax
lea eax, [ebp - 0x21c]
push dword [0x4281e8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x21c]
push 1
push eax
call fcn.004122e2
lea ecx, [ebp - 0x14]
call fcn.0040151a
push edi
lea ecx, [ebp - 0x14]
call fcn.0040154e
lea ecx, [ebp - 0x14]
call fcn.00401547
jmp 0x410c32
cmp cl, 0x2d
je 0x4109b2
cmp cl, 0x2f
jne 0x410a07
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x4109bf
cmp dl, 0x4b
jne 0x410a07
and byte [ebp - 0x118], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
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 - 0x118]
push 0x4271c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.004123bf
jmp 0x410c32
cmp cl, 0x2d
je 0x410a15
cmp cl, 0x2f
jne 0x410ae4
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x410a26
cmp cl, 0x47
jne 0x410ae4
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x410a29
and byte [ebp - 0x118], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
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 - 0x118]
push eax
call ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebp + eax - 0x11a]
and dword [ebp + 8], 0
lea eax, [ebp + eax - 0x118]
cmp cl, 0x2d
je 0x410a83
cmp cl, 0x2f
jne 0x410a9b
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x410a90
cmp cl, 0x53
jne 0x410a9b
and byte [eax - 2], 0
mov dword [ebp + 8], 1
and byte [ebp - 0x21c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
and byte [esi - 2], 0
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 - 0x21c]
push eax
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00412ba6
add esp, 0xc
jmp 0x410c83
and dword [ebp + 0x10], 0
cmp dword [ebp - 8], 1
jbe 0x410b20
mov cl, byte [esi]
cmp cl, 0x2d
je 0x410afa
cmp cl, 0x2f
jne 0x410b20
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x410b07
cmp cl, 0x51
jne 0x410b20
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp + 0x10], eax
je 0x410b20
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x410c42
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00411fa8
test eax, eax
je 0x410c42
push esi
call fcn.00410c8a
test al, al
pop ecx
je 0x410c42
and byte [ebp - 0x690], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x68f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x118], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x690]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x410c42
lea eax, [ebp - 0x118]
push eax
push 0
lea eax, [ebp - 0x690]
push 0x42719c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x118]
push 0
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x410c42
xor eax, eax
push eax
push 0x4000000
push 3
push eax
push 1
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
and byte [ebp - 0x21c], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
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 - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._s__q__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x21c]
push 1
push eax
call fcn.004123bf
test eax, eax
je 0x410c36
cmp ebx, 0xffffffff
je 0x410c32
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410c83
cmp ebx, 0xffffffff
je 0x410c42
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411cb0
and dword [0x42ea60], 0
lea ecx, [ebp - 0x290]
call fcn.004052e1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x290]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00405339
mov esi, dword [0x42ea5c]
lea ecx, [ebp - 0x290]
call fcn.00405325
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10