Function at 0x4cd190
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e619a
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2a8]
mov esi, dword [esp + 0x2ac]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x20], ax
mov ebp, 7
mov eax, ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4cd1f4
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00439ce0
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x2a0], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cd230
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00439ce0
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 1
mov dword [esp + 0x24], 0x5c
call fcn.00456450
cmp eax, 0xffffffff
je 0x4cd28a
mov ecx, dword [esp + 0x30]
dec ecx
cmp eax, ecx
je 0x4cd28a
push 1
push 0x5f1164
lea ecx, [esp + 0x24]
call fcn.00439740
push 0x5fb2dc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004cb950
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4cd379
xor ecx, ecx
mov edi, 8
push edi
mov word [esp + 0x5c], cx
push str.misc.MPQ
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
call fcn.00439ce0
push 0x15
xor edx, edx
push str.wow_update_base_.MPQ
lea ecx, [esp + 0x78]
mov byte [esp + 0x2a8], 2
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
call fcn.00439ce0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2ac], 3
call fcn.004cbd80
add esp, 0xc
mov esi, eax
cmp dword [esp + 0x88], edi
jb 0x4cd332
mov eax, dword [esp + 0x74]
push eax
call fcn.00506f70
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
mov byte [esp + 0x2a0], 1
cmp dword [esp + 0x6c], edi
jb 0x4cd362
mov edx, dword [esp + 0x58]
push edx
call fcn.00506f70
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], ax
cmp esi, ebx
je 0x4cd485
lea ecx, [esp + 0x8c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.box_clientItemDisplayInfo.db2
lea edx, [esp + 0x90]
push 0x104
push edx
call fcn.0057ee86
add esp, 0xc
push 1
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
lea eax, [esp + 0xac]
mov dword [esp + 0x38], esp
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4cd3c7
sub eax, edi
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
call fcn.00439ce0
call fcn.0059f0f0
add esp, 0x20
push 1
lea eax, [esp + 0x90]
push eax
push 0x5fb2dc
push esi
call fcn.004021a0
push esi
mov byte [esp + 0x1b], al
call fcn.00402170
cmp byte [esp + 0x17], bl
je 0x4cd480
push 0x64
call fcn.00506f00
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x2a0], 4
cmp esi, ebx
je 0x4cd43f
mov ecx, esi
call fcn.004ca3b0
mov dword [esi], vtable.DBE::CDBItemDisp.0
mov byte [esi + 0x60], bl
jmp 0x4cd441
xor esi, esi
mov byte [esp + 0x2a0], 1
cmp esi, ebx
je 0x4cd480
lea ecx, [esp + 0x8c]
push ecx
mov ecx, esi
call fcn.004c6170
test eax, eax
je 0x4cd476
lea ecx, [esp + 0x38]
call fcn.00495410
lea ecx, [esp + 0x1c]
call fcn.00495410
mov eax, esi
jmp 0x4cd4bc
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edi, 8
cmp dword [esp + 0x50], edi
jb 0x4cd498
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00506f70
add esp, 4
xor edx, edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [esp + 0x34], edi
jb 0x4cd4ba
mov eax, dword [esp + 0x20]
push eax
call fcn.00506f70
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.005792fc
add esp, 0x290
ret