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
mov eax, 0x4d4de0
lea esi, [ebp - 0x214]
call fcn.00403290
mov eax, dword [0x4ff104]
xor ebx, ebx
cmp eax, ebx
jne 0x40b531
push 0x24d8
call fcn.0042d9bc
add esp, 4
cmp eax, ebx
je 0x40b52a
mov esi, eax
call fcn.00411420
jmp 0x40b52c
xor eax, eax
mov dword [0x4ff104], eax
push edi
lea edi, [eax + 0x410]
cmp eax, ebx
jne 0x40b55d
push 0x24d8
call fcn.0042d9bc
add esp, 4
cmp eax, ebx
je 0x40b556
mov esi, eax
call fcn.00411420
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 0x24d8
call fcn.0042d9bc
add esp, 4
cmp eax, ebx
je 0x40b592
mov esi, eax
call fcn.00411420
jmp 0x40b594
xor eax, eax
mov dword [0x4ff104], eax
push 0x4d4c6c
add eax, 0xe38
push 0x104
push eax
call fcn.0042f67a
mov eax, dword [0x4ff104]
add esp, 0xc
cmp eax, ebx
jne 0x40b5db
push 0x24d8
call fcn.0042d9bc
add esp, 4
cmp eax, ebx
je 0x40b5d4
mov esi, eax
call fcn.00411420
jmp 0x40b5d6
xor eax, eax
mov dword [0x4ff104], eax
push str.UninstallNeoCell.exe
add eax, 0xe38
push 0x104
push eax
call fcn.0042f67a
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.00436fe0
add esp, 0x18
cmp dword [0x4ff104], ebx
jne 0x40b63b
push 0x24d8
call fcn.0042d9bc
add esp, 4
cmp eax, ebx
je 0x40b635
mov esi, eax
call fcn.00411420
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.0042ded6
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.00403dd0
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 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b7af
mov esi, eax
call fcn.00411420
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.00403dd0
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 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b82d
mov esi, eax
call fcn.00411420
jmp 0x40b82f
xor eax, eax
mov dword [0x4ff104], eax
mov edi, eax
test eax, eax
jne 0x40b863
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b859
mov esi, eax
call fcn.00411420
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.0040cf70
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042ded6
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 eax, dword [ebx - 8]
push eax
push ebx
call fcn.0042ded6
add esp, 8
test eax, eax
js 0x40b731
cmp eax, dword [ebx - 8]
jg 0x40b731
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40b906
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b8ff
mov esi, eax
call fcn.00411420
mov esi, dword [ebp - 0x210]
jmp 0x40b901
xor eax, eax
mov dword [0x4ff104], eax
mov edi, eax
test eax, eax
jne 0x40b933
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b92c
mov esi, eax
call fcn.00411420
mov esi, dword [ebp - 0x210]
jmp 0x40b92e
xor eax, eax
mov dword [0x4ff104], eax
lea ecx, [edi + 0xe38]
push eax
call fcn.0040c9c0
call fcn.00406aa0
call fcn.00404db0
test eax, eax
jne 0x40ba2f
mov ecx, dword [0x4ff104]
test ecx, ecx
jne 0x40b97f
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b977
mov esi, eax
call fcn.00411420
mov ecx, eax
jmp 0x40b979
xor ecx, ecx
mov dword [0x4ff104], ecx
mov dword [ebp - 0x214], ecx
test ecx, ecx
jne 0x40b9ad
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b9a5
mov esi, eax
call fcn.00411420
mov ecx, eax
jmp 0x40b9a7
xor ecx, ecx
mov dword [0x4ff104], ecx
mov dword [ebp - 0x21c], ecx
test ecx, ecx
jne 0x40b9db
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b9d3
mov esi, eax
call fcn.00411420
mov ecx, eax
jmp 0x40b9d5
xor ecx, ecx
mov dword [0x4ff104], ecx
mov edi, ecx
test ecx, ecx
jne 0x40ba05
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40b9fd
mov esi, eax
call fcn.00411420
mov ecx, eax
jmp 0x40b9ff
xor ecx, ecx
mov dword [0x4ff104], ecx
mov eax, dword [ebp - 0x214]
add eax, 0xa28
push eax
mov eax, dword [ebp - 0x21c]
add edi, 0x410
push edi
add eax, 0x820
push ecx
call fcn.0040cce0
mov esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x40ba52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
pop ebx
test edx, edx
jg 0x40ba8c
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.0042cf77
mov esp, ebp
pop ebp
ret