Function at 0x404eb0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45e7dc
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x4770c4]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4770c4]
xor eax, esp
push eax
lea eax, [esp + 0x3a0]
mov dword fs:[0], eax
lea eax, [esp + 0x68]
push eax
mov edi, ecx
call fcn.0040ccb0
lea ebp, [edi + 0x420]
xor ebx, ebx
push ebp
lea esi, [esp + 0x50]
mov dword [esp + 0x3ac], ebx
call fcn.004068b0
add esp, 4
push 0xf
mov eax, str.p2psearcher.exe
mov ecx, esi
mov byte [esp + 0x3ac], 1
call fcn.00401530
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x8c]
call fcn.00401ac0
xor ecx, ecx
push 6
mov eax, 0x46c83c
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
call fcn.004016d0
mov edx, esi
push edx
lea ecx, [ebx + 0x19]
lea edx, [esp + 0x6c]
mov byte [esp + 0x3ac], 2
call fcn.0040d220
mov byte [esp + 0x3a8], 1
cmp dword [esp + 0x48], 8
jb 0x404f90
mov eax, dword [esp + 0x34]
push eax
call fcn.00445f80
add esp, 4
cmp byte [edi + 0x440], bl
je 0x40524c
push 0x208
lea edx, [esp + 0x196]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x19c], cx
call fcn.00447cc0
add esp, 0xc
push ebx
push 2
lea eax, [esp + 0x198]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x190]
add edi, 0xfffffffe
jmp 0x404fe0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x404fe0
mov ecx, dword [0x46c48c]
lea eax, [esp + 0x190]
mov dword [edi], ecx
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x405000
mov edx, dword [0x46c83c]
mov ecx, dword [0x46c840]
mov dword [eax], edx
mov edx, dword [0x46c844]
mov dword [eax + 4], ecx
mov cx, word [0x46c848]
mov dword [eax + 8], edx
push ebx
lea edx, [esp + 0x194]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [esp + 0x190]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x405050
mov eax, dword [0x46c48c]
mov dword [edi], eax
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0x190]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405081
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x194]
lea esi, [esp + 0x34]
call fcn.004016d0
lea eax, [esp + 0x190]
mov byte [esp + 0x3a8], 3
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4050b3
mov edx, dword [0x46c83c]
mov ecx, dword [0x46c840]
mov dword [eax], edx
mov edx, dword [0x46c844]
mov dword [eax + 4], ecx
mov cx, word [0x46c848]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
lea eax, [esp + 0x190]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4050f0
mov edx, dword [0x46caf8]
mov ecx, dword [0x46cafc]
mov dword [eax], edx
mov dx, word [0x46cb00]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
xor eax, eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x190]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405131
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x194]
lea esi, [esp + 0x18]
call fcn.004016d0
mov ecx, esi
push ecx
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x3b0], 4
call fcn.0040cfa0
mov edi, 8
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0x2c], edi
jb 0x405186
mov eax, dword [esp + 0x18]
push eax
call fcn.00445f80
add esp, 4
lea ecx, [esp + 0xfc]
push ecx
call fcn.0040ccb0
push ebp
lea esi, [esp + 0x18]
mov byte [esp + 0x3ac], 5
call fcn.004068b0
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x3b0], 6
call fcn.00401ac0
mov byte [esp + 0x3a8], 5
cmp dword [esp + 0x2c], edi
jb 0x4051d7
mov edx, dword [esp + 0x18]
push edx
call fcn.00445f80
add esp, 4
push 0xd
mov eax, str.UnInstall.exe
lea ecx, [esp + 0x50]
call fcn.00401530
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0x120]
call fcn.00401ac0
push 6
mov eax, 0x46cb04
lea ecx, [esp + 0x34]
call fcn.00401530
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.0040cfa0
lea edx, [esp + 0xfc]
push edx
mov byte [esp + 0x3ac], 3
call fcn.0040cda0
mov byte [esp + 0x3a8], 1
cmp dword [esp + 0x48], edi
jb 0x40524c
mov eax, dword [esp + 0x34]
push eax
call fcn.00445f80
add esp, 4
xor ecx, ecx
mov edi, 7
push 6
mov eax, 0x46c83c
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
call fcn.004016d0
mov edx, esi
push edx
lea ecx, [edi + 0x13]
lea edx, [esp + 0x6c]
mov byte [esp + 0x3ac], 7
call fcn.0040d220
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x40529f
mov eax, dword [esp + 0x34]
push eax
call fcn.00445f80
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
cmp dword [esp + 0x64], esi
jb 0x4052c1
mov edx, dword [esp + 0x50]
push edx
call fcn.00445f80
add esp, 4
lea ecx, [esp + 0x68]
xor eax, eax
push ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
mov dword [esp + 0x3ac], 0xffffffff
call fcn.0040cda0
mov ecx, dword [esp + 0x3a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.00445f20
add esp, 0x398
ret