Function at 0x47b360
Capabilities:
Create directory
Create thread
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51bf
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.0047cf30
mov ebx, 1
cmp eax, ebx
jne 0x47bc2f
push 0
push 0
push 0
push 0x47d410
push 0
push 0
call fcn.00489a52
push 0x58
call fcn.00486d3e
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x47b3e3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.0047a770
jmp 0x47b3e5
xor eax, eax
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov edi, dword [0x4d0180]
mov dword [0x4d0180], eax
test edi, edi
je 0x47b40a
mov eax, edi
call fcn.0047a8b0
push edi
call fcn.00486a80
add esp, 4
push ecx
mov dword [ebp - 0x18], esp
push esp
mov ecx, 0x4a970c
call fcn.0041bf30
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], esp
push esp
mov ecx, 0x4a970c
call fcn.0041bf30
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], esp
push esp
mov ecx, 0x4a970c
call fcn.0041bf30
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], esi
call fcn.00418560
add esp, 0x10
mov edi, 0x4d0198
mov dword [ebp - 4], 3
call fcn.00417130
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b47f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4d0198]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [0x4d0198]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
call edi
cmp eax, esi
je 0x47bc0d
mov eax, dword [0x4d0198]
push eax
call edi
test al, 0x10
je 0x47bc0d
push 0x10
call fcn.00486d3e
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 4
test edi, edi
je 0x47b4e0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push edi
call fcn.0041d520
jmp 0x47b4e2
xor eax, eax
mov dword [ebp - 4], esi
mov dword [0x4cfcc4], eax
call fcn.0047bc50
mov edi, eax
cmp edi, ebx
je 0x47b526
cmp byte [0x4c74e4], 0
jne 0x47b512
push 0x10
push str.Generic_Plus_
push str.A_fatal_error_occured__the_setup_cannot_continue._nError_Code:_8004a._n_nPlease_try_to_download_the_setup_again_from_another_source.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0047d340
xor edi, edi
push edi
push edi
push ebx
push edi
mov dword [0x4c74f0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [ebp - 0x40]
push ecx
push 0x4cfcbc
mov dword [0x4cfc40], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x47b5a6
cmp byte [0x4c74e4], 0
jne 0x47b57d
push 0x10
push str.Generic_Plus_
push str.A_fatal_error_occured__the_setup_cannot_continue._nError_Code:_8007
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.ac0ec24
mov edi, 0x4d01b0
call fcn.00417b50
add esp, 4
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x44
mov dword [ebp - 4], 5
call fcn.00486d3e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
cmp eax, edi
je 0x47b5ca
push eax
call fcn.00466340
jmp 0x47b5cc
xor eax, eax
push 0x38
mov dword [0x4cfcc0], eax
mov dword [ebp - 4], 8
call fcn.00486d3e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
cmp eax, edi
je 0x47b5f5
push eax
call fcn.00447d40
jmp 0x47b5f7
xor eax, eax
mov dword [ebp - 4], esi
mov dword [0x4cfcc8], eax
cmp dword [0x4cfcc0], edi
je 0x47bb59
cmp eax, edi
je 0x47bb59
call fcn.00466730
mov edx, dword [0x4d0184]
mov dword [0x4cfcd4], eax
cmp dword [edx - 0xc], edi
jne 0x47b8bf
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 0xb
call fcn.0041bb70
mov byte [ebp - 4], 0xc
cmp byte [0x4cfcd8], 0
je 0x47b77c
lea ecx, [ebp - 0x30]
push ecx
mov edx, 0x20019
mov eax, str.SOFTWAREPatchouMessenger_Plus__Live
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00419630
test eax, eax
jne 0x47b6bf
lea edx, [ebp - 0x30]
push edx
mov ebx, 0x4d0184
mov eax, str.AppDir
call fcn.0041d3e0
mov eax, dword [0x4d0184]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x47b6bf
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4a970c
call fcn.0041bf30
lea eax, [ebp - 0x18]
mov edi, ebx
mov byte [ebp - 4], 0xd
call fcn.00417130
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.0043ec30
mov edx, dword [0x4d0184]
cmp dword [edx - 0xc], 0
jne 0x47b8ac
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x47b6f8
mov eax, 0x400
mov ecx, 0x4d0184
call fcn.00416f90
mov edx, dword [0x4d0184]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [0x4d0184]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004883c5
add esp, 8
test eax, eax
js 0x47b772
mov ecx, dword [0x4d0184]
cmp eax, dword [ecx - 8]
jg 0x47b772
mov dword [ecx - 0xc], eax
mov ecx, dword [0x4d0184]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [0x4d0184]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x47b768
lea ecx, [eax - 1]
test ecx, ecx
js 0x47b772
cmp ecx, eax
jg 0x47b772
cmp word [edx + ecx*2], 0x5c
jne 0x47b768
lea ecx, [eax - 1]
push 0x4d0184
mov eax, 1
call fcn.00419010
mov edx, str.Messenger_Plus__Live
jmp 0x47b8a2
push 0x80070057
call fcn.004170a0
lea edx, [ebp - 0x30]
push edx
mov edx, 0x20019
mov eax, str.SoftwareYuna_SoftwareMessenger_Plus_
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00419630
test eax, eax
jne 0x47b7e4
lea eax, [ebp - 0x30]
push eax
mov ebx, 0x4d0184
mov eax, str.AppDir
call fcn.0041d3e0
mov ecx, dword [0x4d0184]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x47b7e4
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4a970c
call fcn.0041bf30
lea eax, [ebp - 0x18]
mov edi, ebx
mov byte [ebp - 4], 0xe
call fcn.00417130
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.0043ec30
mov edx, dword [0x4d0184]
cmp dword [edx - 0xc], 0
jne 0x47b8ac
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x47b81d
mov eax, 0x400
mov ecx, 0x4d0184
call fcn.00416f90
mov edx, dword [0x4d0184]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [0x4d0184]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004883c5
add esp, 8
test eax, eax
js 0x47b772
mov ecx, dword [0x4d0184]
cmp eax, dword [ecx - 8]
jg 0x47b772
mov dword [ecx - 0xc], eax
mov edx, dword [0x4d0184]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [0x4d0184]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x47b89d
lea ecx, [eax - 1]
test ecx, ecx
js 0x47b772
cmp ecx, eax
jg 0x47b772
cmp word [edx + ecx*2], 0x5c
jne 0x47b89d
lea ecx, [eax - 1]
push 0x4d0184
mov eax, 1
call fcn.00419010
mov edx, str.Yuna_SoftwareMessenger_Plus_
mov eax, 0x4d0184
call fcn.00418fa0
lea eax, [ebp - 0x1c]
call fcn.0043ec30
lea esi, [ebp - 0x30]
call fcn.0041d3c0
or esi, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 0xf
call fcn.0045eeb0
test eax, eax
jns 0x47b969
cmp byte [0x4c74e4], bl
jne 0x47b93c
lea esi, [ebp - 0x18]
call fcn.0041b9f0
mov esi, eax
push str.XmlError
push 0x4ae138
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
mov ebx, dword [0x4cfccc]
push eax
call fcn.0041b780
mov eax, dword [eax]
mov edx, dword [esi]
push eax
push 0
mov eax, 0x30
call fcn.0041ba10
lea eax, [ebp - 0x1c]
call fcn.0043ec30
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call fcn.0043ec30
mov ecx, str.http:__software.msgpluslive.net_getmsxml.php
call fcn.00418b70
or esi, 0xffffffff
push str.ac0ec27
mov edi, 0x4d01b0
call fcn.00417b50
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
add esp, 4
test eax, eax
je 0x47bc2a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x47bc2a
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x47b97a
push 0x80004003
call fcn.00485e30
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [0x4c74e4], 0
mov dword [ebp - 0x14], ebx
je 0x47bb2a
mov byte [ebp - 0x1c], 0
push 0x3ec
call fcn.00486d3e
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x47b9bc
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.004842e0
mov edi, eax
jmp 0x47b9be
xor edi, edi
mov byte [ebp - 4], 0xf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov esi, edi
call fcn.0046aac0
test al, al
jne 0x47ba2f
cmp byte [0x4c74e4], al
jne 0x47b9f0
push 0x10
push str.Generic_Plus_
push str.A_fatal_error_occured__the_setup_cannot_continue._nError_Code:_8008
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.ac0ec28
mov edi, 0x4d01b0
call fcn.00417b50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add esp, 4
test eax, eax
je 0x47ba18
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0xa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x47baeb
mov bl, 1
cmp eax, 0xffffffff
je 0x47baeb
mov edx, dword [ebp - 0x58]
add edx, 0xffffff00
cmp edx, 9
ja 0x47bad2
cmp dword [0x4d0138], 0
je 0x47bad2
cmp byte [0x4d0258], 0
jne 0x47bad2
mov byte [ebp - 4], 0x12
mov ecx, dword [0x4d0134]
mov eax, dword [ecx]
mov byte [0x4d0258], bl
mov dword [ebp - 0x18], eax
mov esi, ecx
lea esp, [esp]
cmp eax, esi
je 0x47babc
test bl, bl
je 0x47babc
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x5c]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
je 0x47baaf
xor bl, bl
lea eax, [ebp - 0x18]
call fcn.004643e0
mov eax, dword [ebp - 0x18]
jmp 0x47ba90
mov dword [ebp - 4], 0xf
mov byte [0x4d0258], 0
test bl, bl
je 0x47ba2f
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x47ba2f
cmp dword [edi + 0xc8], 4
jne 0x47bafd
mov byte [ebp - 0x1c], 1
jmp 0x47b996
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47bb13
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
call fcn.0047ab30
mov edi, eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x47bb45
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4c74e4], 0
jne 0x47bb75
push 0x10
push str.Generic_Plus_
push str.A_fatal_error_occured__the_setup_cannot_continue._nError_Code:_8006
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4c74e4], 0
jne 0x47bc2a
push 0x10
push str.Generic_Plus_
push str.A_fatal_error_occured__the_setup_cannot_continue._nError_Code:_8003
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret