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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x400
push ebx
push 0x431c0c
mov dword [0x434bc0], edi
call fcn.0041bc70
mov ecx, dword [0x434c5c]
mov eax, dword [0x434c60]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [0x434bb4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jbe 0x414966
mov cl, byte [esi]
cmp cl, 0x2d
je 0x4147cc
cmp cl, 0x2f
jne 0x41482a
cmp byte [esi + 1], 0x25
jne 0x41482a
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x4147d5
and byte [eax - 2], 0
dec eax
push eax
lea eax, [ebp - 0x220]
push dword [0x42e1f8]
push 0x42da9c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.00416242
lea ecx, [ebp - 0x18]
call fcn.00401535
push edi
lea ecx, [ebp - 0x18]
call fcn.00401569
lea ecx, [ebp - 0x18]
call fcn.00401562
jmp 0x414ab7
cmp cl, 0x2d
je 0x414834
cmp cl, 0x2f
jne 0x414889
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x414841
cmp dl, 0x4b
jne 0x414889
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
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 - 0x11c]
push 0x42d1f0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x11c]
push 1
push eax
call fcn.0041631f
jmp 0x414ab7
cmp cl, 0x2d
je 0x414897
cmp cl, 0x2f
jne 0x414966
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x4148a8
cmp cl, 0x47
jne 0x414966
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x4148ab
and byte [ebp - 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
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 - 0x11c]
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [ebp + eax - 0x11e]
and dword [ebp + 8], 0
lea eax, [ebp + eax - 0x11c]
cmp cl, 0x2d
je 0x414905
cmp cl, 0x2f
jne 0x41491d
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x414912
cmp cl, 0x53
jne 0x41491d
and byte [eax - 2], 0
mov dword [ebp + 8], 1
and byte [ebp - 0x220], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
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 - 0x220]
push eax
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00416b58
add esp, 0xc
jmp 0x414b10
cmp dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
jbe 0x4149a1
mov cl, byte [esi]
cmp cl, 0x2d
je 0x41497b
cmp cl, 0x2f
jne 0x4149a1
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x414988
cmp cl, 0x51
jne 0x4149a1
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp - 8], eax
je 0x4149a1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x414aca
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00415e64
test eax, eax
je 0x414aca
push esi
call fcn.00414b17
test al, al
pop ecx
je 0x414aca
and byte [ebp - 0x694], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x693]
rep stosd dword es:[edi], eax
and byte [ebp - 0x11c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x694]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x414aca
lea eax, [ebp - 0x11c]
push eax
push ebx
lea eax, [ebp - 0x694]
push 0x42d1cc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x11c]
push ebx
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x414aca
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x11c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
and byte [ebp - 0x220], 0
push 0x40
mov dword [ebp + 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
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 - 0x11c]
push eax
lea eax, [ebp - 0x220]
push str._s__q__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.0041631f
test eax, eax
je 0x414abb
cmp dword [ebp + 0x10], 0xffffffff
je 0x414ab7
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414b10
cmp dword [ebp + 0x10], 0xffffffff
je 0x414aca
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00415b72
lea ecx, [ebp - 0x294]
mov dword [0x434bbc], ebx
mov dword [0x434bb8], ebx
call fcn.0040889b
push dword [ebp - 8]
lea ecx, [ebp - 0x294]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004088f3
mov esi, dword [0x434bb4]
lea ecx, [ebp - 0x294]
call fcn.004088df
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10