Function at 0x4108f1
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.00416f60
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 0x410ae5
mov cl, byte [esi]
cmp cl, 0x2d
je 0x41094b
cmp cl, 0x2f
jne 0x4109a9
cmp byte [esi + 1], 0x25
jne 0x4109a9
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x410954
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.00412312
lea ecx, [ebp - 0x14]
call fcn.0040151a
push edi
lea ecx, [ebp - 0x14]
call fcn.0040154e
lea ecx, [ebp - 0x14]
call fcn.00401547
jmp 0x410c33
cmp cl, 0x2d
je 0x4109b3
cmp cl, 0x2f
jne 0x410a08
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x4109c0
cmp dl, 0x4b
jne 0x410a08
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.004123ef
jmp 0x410c33
cmp cl, 0x2d
je 0x410a16
cmp cl, 0x2f
jne 0x410ae5
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x410a27
cmp cl, 0x47
jne 0x410ae5
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x410a2a
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 0x410a84
cmp cl, 0x2f
jne 0x410a9c
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x410a91
cmp cl, 0x53
jne 0x410a9c
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.00412bd6
add esp, 0xc
jmp 0x410c84
and dword [ebp + 0x10], 0
cmp dword [ebp - 8], 1
jbe 0x410b21
mov cl, byte [esi]
cmp cl, 0x2d
je 0x410afb
cmp cl, 0x2f
jne 0x410b21
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x410b08
cmp cl, 0x51
jne 0x410b21
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp + 0x10], eax
je 0x410b21
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x410c43
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00411fae
test eax, eax
je 0x410c43
push esi
call fcn.00410c8b
test al, al
pop ecx
je 0x410c43
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 0x410c43
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 0x410c43
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.004123ef
test eax, eax
je 0x410c37
cmp ebx, 0xffffffff
je 0x410c33
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410c84
cmp ebx, 0xffffffff
je 0x410c43
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411cb6
and dword [0x42ea60], 0
lea ecx, [ebp - 0x290]
call fcn.004052e0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x290]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00405338
mov esi, dword [0x42ea5c]
lea ecx, [ebp - 0x290]
call fcn.00405324
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10