Function at 0x410e76
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 0x42db84
mov dword [0x430b34], edi
call fcn.00417ce0
mov ecx, dword [0x430bd0]
and dword [0x430b2c], 0
mov eax, dword [0x430bd4]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jbe 0x41106a
mov cl, byte [esi]
cmp cl, 0x2d
je 0x410ed0
cmp cl, 0x2f
jne 0x410f2e
cmp byte [esi + 1], 0x25
jne 0x410f2e
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x410ed9
and byte [eax - 2], 0
dec eax
push eax
lea eax, [ebp - 0x21c]
push dword [0x42a208]
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.004128e2
lea ecx, [ebp - 0x14]
call fcn.0040151a
push edi
lea ecx, [ebp - 0x14]
call fcn.0040154e
lea ecx, [ebp - 0x14]
call fcn.00401547
jmp 0x4111b8
cmp cl, 0x2d
je 0x410f38
cmp cl, 0x2f
jne 0x410f8d
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x410f45
cmp dl, 0x4b
jne 0x410f8d
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 0x4291c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.004129bf
jmp 0x4111b8
cmp cl, 0x2d
je 0x410f9b
cmp cl, 0x2f
jne 0x41106a
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x410fac
cmp cl, 0x47
jne 0x41106a
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x410faf
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 0x411009
cmp cl, 0x2f
jne 0x411021
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x411016
cmp cl, 0x53
jne 0x411021
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.004131a6
add esp, 0xc
jmp 0x411209
and dword [ebp + 0x10], 0
cmp dword [ebp - 8], 1
jbe 0x4110a6
mov cl, byte [esi]
cmp cl, 0x2d
je 0x411080
cmp cl, 0x2f
jne 0x4110a6
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x41108d
cmp cl, 0x51
jne 0x4110a6
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp + 0x10], eax
je 0x4110a6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4111c8
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00412504
test eax, eax
je 0x4111c8
push esi
call fcn.00411210
test al, al
pop ecx
je 0x4111c8
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 0x4111c8
lea eax, [ebp - 0x118]
push eax
push 0
lea eax, [ebp - 0x690]
push 0x42919c
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 0x4111c8
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.004129bf
test eax, eax
je 0x4111bc
cmp ebx, 0xffffffff
je 0x4111b8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x411209
cmp ebx, 0xffffffff
je 0x4111c8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0041220c
and dword [0x430b30], 0
lea ecx, [ebp - 0x290]
call fcn.004053ef
push dword [ebp + 0x10]
lea ecx, [ebp - 0x290]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00405447
mov esi, dword [0x430b2c]
lea ecx, [ebp - 0x290]
call fcn.00405433
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10