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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.0041cf80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x400
push ebx
push 0x432d8c
mov dword [0x435d40], edi
call fcn.0041cac0
mov ecx, dword [0x435de8]
mov eax, dword [0x435dec]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [0x435d34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jbe 0x4155c9
mov cl, byte [esi]
cmp cl, 0x2d
je 0x415434
cmp cl, 0x2f
jne 0x415491
cmp byte [esi + 1], 0x25
jne 0x415491
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x41543d
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.00416fe9
lea ecx, [ebp - 0x18]
call fcn.00401535
push edi
lea ecx, [ebp - 0x18]
call fcn.00401569
lea ecx, [ebp - 0x18]
call fcn.00401562
jmp 0x4157a2
cmp cl, 0x2d
je 0x41549b
cmp cl, 0x2f
jne 0x4154ef
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x4154a8
cmp dl, 0x4b
jne 0x4154ef
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.004170c6
jmp 0x4157a2
cmp cl, 0x2d
je 0x4154fd
cmp cl, 0x2f
jne 0x4155c9
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x41550e
cmp cl, 0x47
jne 0x4155c9
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x415511
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 0x415567
cmp cl, 0x2f
jne 0x41557e
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x415574
cmp cl, 0x53
jne 0x41557e
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.0041790d
add esp, 0xc
jmp 0x4157e3
cmp dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
jbe 0x415604
mov cl, byte [esi]
cmp cl, 0x2d
je 0x4155de
cmp cl, 0x2f
jne 0x415604
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x4155eb
cmp cl, 0x51
jne 0x415604
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp - 8], eax
je 0x415604
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4157a6
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00416bc8
test eax, eax
je 0x4157a6
push esi
call fcn.004157ea
test al, al
pop ecx
je 0x4157a6
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 0x4157a6
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 0x4157a6
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.004169eb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x630]
push 0x42ec24
push eax
call esi
push dword [0x42f4f0]
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 [0x42f4f0]
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.004170c6
test eax, eax
je 0x4157a6
xor eax, eax
jmp 0x4157e3
call fcn.004168d6
lea ecx, [ebp - 0x28]
mov dword [0x435d3c], ebx
mov dword [0x435d38], 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 [0x435d34]
lea ecx, [ebp - 0x28]
call fcn.00408d35
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10