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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x4d4de0
lea esi, [ebp - 0x214]
call fcn.00403290
mov eax, dword [0x4ff104]
xor ebx, ebx
cmp eax, ebx
jne 0x40b532
push 0x24d4
call fcn.0042d9ac
add esp, 4
cmp eax, ebx
je 0x40b52b
mov esi, eax
call fcn.00411390
jmp 0x40b52d
xor eax, eax
mov dword [0x4ff104], eax
lea edi, [eax + 0x410]
cmp eax, ebx
jne 0x40b55d
push 0x24d4
call fcn.0042d9ac
add esp, 4
cmp eax, ebx
je 0x40b556
mov esi, eax
call fcn.00411390
jmp 0x40b558
xor eax, eax
mov dword [0x4ff104], eax
lea edx, [eax + 0xe38]
sub edx, edi
movzx ecx, word [edi]
mov word [edx + edi], cx
add edi, 2
cmp cx, bx
jne 0x40b565
cmp eax, ebx
jne 0x40b599
push 0x24d4
call fcn.0042d9ac
add esp, 4
cmp eax, ebx
je 0x40b592
mov esi, eax
call fcn.00411390
jmp 0x40b594
xor eax, eax
mov dword [0x4ff104], eax
push 0x4d4c6c
add eax, 0xe38
push 0x104
push eax
call fcn.0042f66d
mov eax, dword [0x4ff104]
add esp, 0xc
cmp eax, ebx
jne 0x40b5db
push 0x24d4
call fcn.0042d9ac
add esp, 4
cmp eax, ebx
je 0x40b5d4
mov esi, eax
call fcn.00411390
jmp 0x40b5d6
xor eax, eax
mov dword [0x4ff104], eax
push str.UninstallNeoCell.exe
add eax, 0xe38
push 0x104
push eax
call fcn.0042f66d
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.00436f70
add esp, 0x18
cmp dword [0x4ff104], ebx
jne 0x40b63b
push 0x24d4
call fcn.0042d9ac
add esp, 4
cmp eax, ebx
je 0x40b635
mov esi, eax
call fcn.00411390
mov dword [0x4ff104], eax
jmp 0x40b63b
mov dword [0x4ff104], ebx
lea edx, [ebp - 0x210]
push edx
push 0x17
push ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40b73b
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x210]
push edx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, ebx
je 0x40b73b
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40b690
mov eax, dword [0x4d4c6c]
mov ebx, dword [ebp - 0x214]
mov dword [edi], eax
cmp dword [ebx - 4], 1
jle 0x40b6c5
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.00403650
mov ebx, dword [ebp - 0x214]
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b6d0
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b6e6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0042dec6
add esp, 8
test eax, eax
js 0x40b731
cmp eax, dword [ebx - 8]
jg 0x40b731
xor ecx, ecx
push ecx
lea edx, [ebp - 0x20c]
mov dword [ebx - 0xc], eax
push edx
mov word [ebx + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40b741
push 0x80070057
call fcn.00403050
mov ebx, dword [ebp - 0x214]
mov eax, dword [0x4fb44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fb44c
call edx
add eax, 0x10
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push str._sNeoCell.lnk
lea edi, [ebp - 0x210]
call fcn.00403de0
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x4fb44c
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40b7b6
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b7af
mov esi, eax
call fcn.00411390
jmp 0x40b7b1
xor eax, eax
mov dword [0x4ff104], eax
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [ebp - 0x218]
call fcn.00403de0
mov esi, 1
add esp, 8
cmp dword [ebx - 4], esi
jle 0x40b7ef
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.00403650
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
cmp dword [eax - 4], esi
jle 0x40b80a
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00403650
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40b834
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b82d
mov esi, eax
call fcn.00411390
jmp 0x40b82f
xor eax, eax
mov dword [0x4ff104], eax
mov edi, eax
test eax, eax
jne 0x40b863
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b859
mov esi, eax
call fcn.00411390
mov dword [0x4ff104], eax
jmp 0x40b863
mov dword [0x4ff104], 0
mov esi, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
push esi
add edi, 0xc30
push edi
push edx
mov edx, 0x4d4b10
lea ecx, [ebp - 0x20c]
call fcn.0040cf00
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042dec6
add esp, 8
test eax, eax
js 0x40b731
cmp eax, dword [esi - 8]
jg 0x40b731
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [ebp - 0x214]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042dec6
add esp, 8
test eax, eax
js 0x40b731
cmp eax, dword [esi - 8]
jg 0x40b731
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40b906
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b8ff
mov esi, eax
call fcn.00411390
jmp 0x40b901
xor eax, eax
mov dword [0x4ff104], eax
mov ebx, eax
test eax, eax
jne 0x40b92d
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b926
mov esi, eax
call fcn.00411390
jmp 0x40b928
xor eax, eax
mov dword [0x4ff104], eax
lea ecx, [ebx + 0xe38]
push eax
call fcn.0040c9e0
call fcn.00406ac0
call fcn.00404dc0
test eax, eax
jne 0x40ba2b
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40b9a2
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b98f
mov esi, eax
call fcn.00411390
mov dword [0x4ff104], eax
test eax, eax
jne 0x40b9a2
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b99b
mov esi, eax
call fcn.00411390
jmp 0x40b99d
mov dword [0x4ff104], 0
jmp 0x40b975
xor eax, eax
mov dword [0x4ff104], eax
mov edi, eax
test eax, eax
jne 0x40b9c9
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b9c2
mov esi, eax
call fcn.00411390
jmp 0x40b9c4
xor eax, eax
mov dword [0x4ff104], eax
mov ebx, eax
test eax, eax
jne 0x40b9f8
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40b9ee
mov esi, eax
call fcn.00411390
mov dword [0x4ff104], eax
jmp 0x40b9f8
mov dword [0x4ff104], 0
lea eax, [ebp - 0x21c]
push eax
push str.SoftwareNeoCell
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40ba2b
add ebx, 0x410
push ebx
lea eax, [edi + 0x820]
lea ebx, [ebp - 0x21c]
call fcn.0040cd00
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x40ba50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x210]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf67
mov esp, ebp
pop ebp
ret