Function at 0x47a390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49518b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
mov eax, dword [0x4b5320]
push ebx
push esi
mov dword [esp + 0x640], eax
mov eax, dword [0x4b7204]
mov ebx, ecx
xor esi, esi
push edi
mov ecx, 0x4b7204
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov word [esp + 0x230], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
push str.Resource
mov dword [esp + 0x658], esi
stosw word es:[edi], ax
mov dword [esp + 0x18], esi
call fcn.00473b10
mov esi, eax
add esp, 4
mov word [esp + 0x28], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
push str.Resource.xml
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x1c], 0x80004005
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test esi, esi
je 0x47a64d
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00474ec0
mov ecx, eax
add esp, 8
test ecx, ecx
mov dword [esp + 0x10], ecx
jl 0x47a5d0
xor eax, eax
mov word [esp + 0x438], 0
mov ecx, 0x81
lea edi, [esp + 0x43a]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x28]
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 8
lea ecx, [esp + 0x438]
push ecx
call edi
lea edx, [esp + 0x438]
push edx
mov ecx, esi
call fcn.004856f0
push 0
lea eax, [esp + 0x24]
push eax
push str.UI_InitSmooth
mov dword [0x4b6d84], esi
mov dword [esp + 0x2c], 0
call fcn.0043add0
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test edx, edx
setne cl
push str.Skin
mov dword [0x4b6d88], ecx
call fcn.00473b70
add esp, 0x10
test eax, eax
mov dword [ebx + 0x6c], eax
je 0x47a5c6
mov edx, dword [eax]
push eax
call dword [edx + 4]
lea eax, [esp + 0x28]
push eax
call edi
push str.Skin.xml
lea ecx, [esp + 0x2c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebx + 0x6c]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.00474ec0
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
jl 0x47a555
mov edx, dword [ebp + 0xc]
push edx
push esi
mov ecx, ebx
call fcn.004797c0
jmp 0x47a633
push 0x104
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x6c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00473bd0
test eax, eax
je 0x47a5ae
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x230]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, ebx
call fcn.004796b0
mov ebx, dword [ebx + 0x6c]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
jmp 0x47a633
lea eax, [esp + 0x28]
push eax
push edi
mov ecx, ebx
call fcn.004795c0
mov ebx, dword [ebx + 0x6c]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
jmp 0x47a633
mov dword [esp + 0x10], 0x80004005
jmp 0x47a64d
mov eax, dword [esi + 0x24]
test eax, eax
mov dword [esp + 0x14], eax
jge 0x47a620
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
push 0x104
push eax
lea eax, [esp + 0x238]
push eax
mov dword [esp + 0x24], edx
call dword [sym.imp.MSVCR71.dll_wcsncpy]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x230]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebx
call fcn.004796b0
jmp 0x47a62d
lea edx, [esp + 0x28]
push edx
push ecx
mov ecx, ebx
call fcn.004795c0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x47a64d
mov ecx, dword [0x4b55b8]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x47a64d
call fcn.00432550
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x654], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a676
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x64c]
mov eax, dword [esp + 0x10]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x644]
call fcn.0048c3c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8