Function at 0x410955
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 0x42bad4
mov dword [0x42ea84], edi
call fcn.00416fb0
mov ecx, dword [0x42eb3c]
and dword [0x42ea7c], 0
mov eax, dword [0x42eb40]
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jbe 0x410b49
mov cl, byte [esi]
cmp cl, 0x2d
je 0x4109af
cmp cl, 0x2f
jne 0x410a0d
cmp byte [esi + 1], 0x25
jne 0x410a0d
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x4109b8
and byte [eax - 2], 0
dec eax
push eax
lea eax, [ebp - 0x21c]
push dword [0x428200]
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.00412368
lea ecx, [ebp - 0x14]
call fcn.0040151a
push edi
lea ecx, [ebp - 0x14]
call fcn.0040154e
lea ecx, [ebp - 0x14]
call fcn.00401547
jmp 0x410c97
cmp cl, 0x2d
je 0x410a17
cmp cl, 0x2f
jne 0x410a6c
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x410a24
cmp dl, 0x4b
jne 0x410a6c
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.00412445
jmp 0x410c97
cmp cl, 0x2d
je 0x410a7a
cmp cl, 0x2f
jne 0x410b49
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x410a8b
cmp cl, 0x47
jne 0x410b49
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x410a8e
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 0x410ae8
cmp cl, 0x2f
jne 0x410b00
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x410af5
cmp cl, 0x53
jne 0x410b00
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.00412c2c
add esp, 0xc
jmp 0x410ce8
and dword [ebp + 0x10], 0
cmp dword [ebp - 8], 1
jbe 0x410b85
mov cl, byte [esi]
cmp cl, 0x2d
je 0x410b5f
cmp cl, 0x2f
jne 0x410b85
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x410b6c
cmp cl, 0x51
jne 0x410b85
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp + 0x10], eax
je 0x410b85
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x410ca7
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00412004
test eax, eax
je 0x410ca7
push esi
call fcn.00410cef
test al, al
pop ecx
je 0x410ca7
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 0x410ca7
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 0x410ca7
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.00412445
test eax, eax
je 0x410c9b
cmp ebx, 0xffffffff
je 0x410c97
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410ce8
cmp ebx, 0xffffffff
je 0x410ca7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411d0c
and dword [0x42ea80], 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 [0x42ea7c]
lea ecx, [ebp - 0x290]
call fcn.00405324
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10