Function at 0x410911
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.00416f70
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 0x410b05
mov cl, byte [esi]
cmp cl, 0x2d
je 0x41096b
cmp cl, 0x2f
jne 0x4109c9
cmp byte [esi + 1], 0x25
jne 0x4109c9
lea eax, [esi + 2]
mov cl, byte [eax]
inc eax
cmp cl, 0x2f
jne 0x410974
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.00412324
lea ecx, [ebp - 0x14]
call fcn.0040151a
push edi
lea ecx, [ebp - 0x14]
call fcn.0040154e
lea ecx, [ebp - 0x14]
call fcn.00401547
jmp 0x410c53
cmp cl, 0x2d
je 0x4109d3
cmp cl, 0x2f
jne 0x410a28
mov dl, byte [esi + 1]
cmp dl, 0x6b
je 0x4109e0
cmp dl, 0x4b
jne 0x410a28
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.00412401
jmp 0x410c53
cmp cl, 0x2d
je 0x410a36
cmp cl, 0x2f
jne 0x410b05
mov cl, byte [esi + 1]
cmp cl, 0x67
je 0x410a47
cmp cl, 0x47
jne 0x410b05
add esi, 2
mov al, byte [esi]
inc esi
cmp al, 0x2f
jne 0x410a4a
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 0x410aa4
cmp cl, 0x2f
jne 0x410abc
mov cl, byte [eax - 1]
cmp cl, 0x73
je 0x410ab1
cmp cl, 0x53
jne 0x410abc
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.00412be8
add esp, 0xc
jmp 0x410ca4
and dword [ebp + 0x10], 0
cmp dword [ebp - 8], 1
jbe 0x410b41
mov cl, byte [esi]
cmp cl, 0x2d
je 0x410b1b
cmp cl, 0x2f
jne 0x410b41
mov cl, byte [esi + 1]
cmp cl, 0x71
je 0x410b28
cmp cl, 0x51
jne 0x410b41
mov eax, dword [eax + 4]
inc eax
inc eax
mov dword [ebp + 0x10], eax
je 0x410b41
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x410c63
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00411fc0
test eax, eax
je 0x410c63
push esi
call fcn.00410cab
test al, al
pop ecx
je 0x410c63
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 0x410c63
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 0x410c63
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.00412401
test eax, eax
je 0x410c57
cmp ebx, 0xffffffff
je 0x410c53
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410ca4
cmp ebx, 0xffffffff
je 0x410c63
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411cc8
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