Function at 0x4a498c
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
call fcn.00404978
xor eax, eax
push ebp
push 0x4a4b8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x60
call fcn.00408754
mov ebx, eax
mov dword [ebx], 0x305
lea eax, [ebx + 4]
mov dword [eax], 0x3090306
lea eax, [ebx + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0xc]
mov dword [eax], 0x902
lea eax, [ebx + 0x10]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x14]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x18]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x1c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x20]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x24]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x28]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x2c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x30]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x34]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x38]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x3c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x40]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x44]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x48]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x4c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x50]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x54]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x58]
xor edx, edx
mov dword [eax], edx
lea eax, [ebx + 0x5c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
call fcn.00404788
mov edi, eax
inc edi
mov eax, edi
add eax, eax
call fcn.00408754
mov esi, eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00405454
mov edi, esi
mov eax, 0x34
call fcn.0040278c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404788
cmp eax, 6
jge 0x4a4aad
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0xc]
call fcn.00404788
cmp eax, 6
jl 0x4a4ac1
mov dword [ebp - 0x10], 8
mov eax, dword [ebp - 0xc]
call fcn.00404788
cmp eax, 0xa
jl 0x4a4ad5
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 4]
mov dword [eax], 0x1216240
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x11d5a50
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], edi
mov eax, dword [ebp - 0xc]
call fcn.00404788
add edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x1c], edx
cmp dword [ebp - 8], 0
jne 0x4a4b2c
mov eax, 0x4030000
jmp 0x4a4b31
mov eax, 0x4030001
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x11d5a50
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ebx
add ebx, 0x5b
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0x80
pushal
mov eax, 0x14b3bf0
mov eax, dword [eax]
mov ecx, dword [eax + 0x2c]
push dword [ebp - 4]
mov ebx, 0xcbfcc0
call ebx
popal
mov eax, esi
call fcn.004027ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4b94
lea eax, [ebp - 0xc]
call fcn.004044c8
ret