Function at 0x4cb468
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4b
push 0
push 0
dec ecx
jne 0x4cb471
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4cb48a
add esp, 0xfffffff0
call fcn.00403cf8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404ca0
mov eax, dword [ebp + 0xc]
call fcn.00404ca0
mov eax, dword [ebp + 8]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4cb820
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4cb78b
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x4197e0]
call fcn.00403950
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0xc]
call fcn.00404844
call fcn.004cb394
mov edx, dword [ebp - 4]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 4]
add eax, 0x30
mov edx, dword [ebp + 8]
call fcn.00404844
push 0xff
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x218]
lea eax, [ebp - 0x212]
call fcn.0040a344
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 4]
add eax, 0x10
mov ecx, 0x4cb854
call fcn.00404afc
push 0xff
lea eax, [ebp - 0x113]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x21c]
lea eax, [ebp - 0x113]
call fcn.0040a344
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x4cb854
call fcn.00404afc
lea edx, [ebp - 0x220]
mov eax, dword [ebp + 0xc]
call fcn.00408fd8
mov eax, dword [ebp - 0x220]
mov edx, 0x4cb860
call fcn.00404bfc
jne 0x4cb5fa
lea edx, [ebp - 0x228]
mov eax, dword [0x5f4c98]
mov eax, dword [eax]
call fcn.004809d4
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.00409e18
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404844
lea edx, [ebp - 0x230]
mov eax, dword [0x5f4c98]
mov eax, dword [eax]
call fcn.004809d4
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x22c]
call fcn.00409e18
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404844
jmp 0x4cb648
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
call fcn.00404844
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [0x4ca7f8]
call fcn.004cac20
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
mov eax, dword [0x4ca84c]
call fcn.004cee98
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404844
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x4cb854
lea ecx, [ebp - 0x23c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.004cb998
push dword [ebp - 0x23c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b70
mov eax, dword [ebp - 0x10]
call fcn.004099e8
test al, al
jne 0x4cb6e6
lea ecx, [ebp - 0x240]
mov edx, 0x4cb870
mov eax, dword [ebp - 4]
call fcn.004cccb4
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00406568
lea eax, [ebp - 0x250]
mov edx, dword [ebp - 0x10]
call fcn.00415534
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x108]
call fcn.00406660
jmp 0x4cb705
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 0x10]
call fcn.004cb11c
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00406568
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4cb75d
lea eax, [ebp - 0x14]
call fcn.00406550
push eax
push 0x4cb888
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x94]
call fcn.00406660
cmp dword [ebp - 0x14], 0
je 0x4cb75d
lea eax, [ebp - 0x258]
push eax
xor ecx, ecx
mov edx, 0x4cb8b0
mov eax, dword [ebp - 0x14]
call fcn.004cb1d8
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404844
lea ecx, [ebp - 0x25c]
mov edx, 0x4cb8c4
mov eax, dword [ebp - 4]
call fcn.004cccb4
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00406568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cb7a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb827
lea eax, [ebp - 0x25c]
call fcn.00406550
lea eax, [ebp - 0x258]
call fcn.004047f0
lea eax, [ebp - 0x254]
call fcn.00406550
lea eax, [ebp - 0x250]
call fcn.00410e28
lea eax, [ebp - 0x240]
call fcn.00406550
lea eax, [ebp - 0x23c]
mov edx, 0xa
call fcn.00404814
lea eax, [ebp - 0x14]
call fcn.00406550
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404814
lea eax, [ebp + 8]
mov edx, 2
call fcn.00404814
ret