Function at 0x40c530
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4b86
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
cmp byte [0x4fe450], 0
je 0x40c897
xor ebx, ebx
mov byte [0x4fe450], 0
mov dword [esp + 0x1c], fcn.00470104
mov dword [esp + 0x20], fcn.00470421
mov dword [esp + 0x24], fcn.00470027
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x8000
mov dword [esp + 0x18], 0x4c36dc
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x1d0], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1d0], 1
call fcn.00401760
call fcn.0045e380
push eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00421cf0
test al, al
jne 0x40c5f6
lea ecx, [esp + 0x10]
call fcn.0041a4d0
mov eax, dword [0x4fe454]
push eax
lea ecx, [esp + 0x1c]
push str.MainShowCnt
push ecx
push ecx
call fcn.00401760
add esp, 4
mov edi, str.Statistics
mov ecx, eax
call fcn.0045bde0
mov edx, dword [0x4fe458]
push edx
push str.MainUseCnt
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00401760
add esp, 4
mov ecx, eax
call fcn.0045bde0
mov esi, 0x4fe468
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x46]
push edx
mov word [esp + 0x48], cx
call fcn.00476c30
add esp, 0xc
push ebx
push str.TabShowCnt_d
lea eax, [esp + 0x44]
push 0x40
push eax
call fcn.0046fdbd
mov ecx, dword [esi - 8]
add esp, 0x10
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00401760
add esp, 4
mov edi, str.Statistics
mov ecx, eax
call fcn.0045bde0
push ebx
push str.TabUseCnt_d
lea ecx, [esp + 0x44]
push 0x40
push ecx
call fcn.0046fdbd
mov edx, dword [esi]
add esp, 0x10
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
push ecx
push ecx
call fcn.00401760
add esp, 4
mov ecx, eax
call fcn.0045bde0
add esi, 4
inc ebx
cmp esi, 0x4fe470
jl 0x40c641
mov esi, dword [0x4fe488]
sub esi, dword [0x4fe484]
lea edx, [esp + 0x18]
sar esi, 2
push esi
push str.BundleCnt
push edx
push ecx
mov dword [esp + 0x48], esi
call fcn.00401760
add esp, 4
mov ecx, eax
call fcn.0045bde0
xor ebx, ebx
test esi, esi
jle 0x40c7e4
mov eax, dword [0x4fe488]
sub eax, dword [0x4fe484]
sar eax, 2
cmp ebx, eax
jb 0x40c721
call fcn.00470dee
mov ecx, dword [0x4fe484]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x40c7d9
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0xc6]
push eax
mov word [esp + 0xc8], dx
call fcn.00476c30
add esp, 0xc
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40c761
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x128]
mov edx, dword [esi + 0x124]
push ecx
push edx
add eax, 4
push eax
push str._s__d__d
lea eax, [esp + 0xcc]
push 0x80
push eax
call fcn.0046fdbd
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x5e]
push edx
mov word [esp + 0x60], cx
call fcn.00476c30
add esp, 0x24
push ebx
push str.Bundle_d
lea eax, [esp + 0x44]
push 0x40
push eax
call fcn.0046fdbd
add esp, 0x10
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push str.Statistics
push eax
call fcn.00401760
mov edi, eax
call fcn.0045bec0
inc ebx
cmp ebx, dword [esp + 0x38]
jl 0x40c70a
call fcn.00401760
cmp word [eax + 0x1620], 0
lea esi, [eax + 0x1620]
jne 0x40c83b
mov ecx, dword [eax + 0xaf4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0x104
push esi
call eax
push str.Components
push 0x104
push esi
call fcn.00471f8e
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.ComponentConfig.ini
push 0x104
push esi
call fcn.00471f8e
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00422390
test al, al
jne 0x40c858
lea ecx, [esp + 0x10]
call fcn.0041a4d0
lea ecx, [esp + 0x10]
call fcn.0041a420
mov dword [esp + 0x1d0], 0xffffffff
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], 0x4c345c
test eax, eax
je 0x40c897
lea esp, [esp]
mov edx, dword [eax + 4]
push eax
mov dword [esp + 0x2c], edx
call dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x40c880
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0046fdae
mov esp, ebp
pop ebp
ret