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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.0041d070
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x400
push ebx
push 0x432dac
mov dword [0x435d60], edi
call fcn.0041cbb0
mov ecx, dword [0x435e08]
mov eax, dword [0x435e0c]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [0x435d54], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jbe 0x4156d1
mov cl, byte [esi]
cmp cl, 0x2d
je 0x41553c
cmp cl, 0x2f
jne 0x415599
cmp byte [esi + 1], 0x25
jne 0x415599
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x415545
mov byte [eax - 2], bl
dec eax
push eax
lea eax, [ebp - 0x230]
push dword [0x42f2f4]
push 0x42eae4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x230]
push 1
push eax
call fcn.004170d2
lea ecx, [ebp - 0x18]
call fcn.00401535
push edi
lea ecx, [ebp - 0x18]
call fcn.00401569
lea ecx, [ebp - 0x18]
call fcn.00401562
jmp 0x4158aa
cmp cl, 0x2d
je 0x4155a3
cmp cl, 0x2f
jne 0x4155f7
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x4155b0
cmp dl, 0x4b
jne 0x4155f7
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 0x42e200
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x12c]
push 1
push eax
call fcn.004171af
jmp 0x4158aa
cmp cl, 0x2d
je 0x415605
cmp cl, 0x2f
jne 0x4156d1
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x415616
cmp cl, 0x47
jne 0x4156d1
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x415619
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 0x41566f
cmp cl, 0x2f
jne 0x415686
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x41567c
cmp cl, 0x53
jne 0x415686
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.004179f6
add esp, 0xc
jmp 0x4158eb
cmp dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
jbe 0x41570c
mov cl, byte [esi]
cmp cl, 0x2d
je 0x4156e6
cmp cl, 0x2f
jne 0x41570c
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x4156f3
cmp cl, 0x51
jne 0x41570c
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp - 8], eax
je 0x41570c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4158ae
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00416cb1
test eax, eax
je 0x4158ae
push esi
call fcn.004158f2
test al, al
pop ecx
je 0x4158ae
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 0x4158ae
lea eax, [ebp - 0x12c]
push eax
push ebx
lea eax, [ebp - 0xa30]
push 0x42e1dc
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 0x4158ae
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.00416ad4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x630]
push 0x42ec24
push eax
call esi
push dword [0x42f50c]
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 [0x42f50c]
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.004171af
test eax, eax
je 0x4158ae
xor eax, eax
jmp 0x4158eb
call fcn.004169bf
lea ecx, [ebp - 0x28]
mov dword [0x435d5c], ebx
mov dword [0x435d58], ebx
call fcn.00408d05
push dword [ebp - 8]
lea ecx, [ebp - 0x28]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00408d4a
mov esi, dword [0x435d54]
lea ecx, [ebp - 0x28]
call fcn.00408d35
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10