Function at 0x4a99e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4f5b08
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x160], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov dword [esp + 0x44], ecx
push 0x3c
lea eax, [esp + 0xd8]
push 0
push eax
call fcn.004e3fe0
add esp, 0xc
lea ecx, [esp + 0xd4]
call fcn.004a96a0
push 0x44
lea eax, [esp + 0x50]
mov dword [esp + 0x17c], 0
push 0
push eax
call fcn.004e3fe0
add esp, 0xc
mov dword [esp + 0x50], 0
push 0x410940
push 0x4a9640
push 2
push 0x18
lea eax, [esp + 0x6c]
mov byte [esp + 0x188], 1
push eax
mov dword [esp + 0x60], vtable.CMenuPage.0
call fcn.004e05a2
mov dword [esp + 0x8c], 0
xorps xmm0, xmm0
mov byte [esp + 0x178], 2
lea ecx, [esp + 0x110]
movq qword [esp + 0x130], xmm0
movdqu xmmword [esp + 0x110], xmm0
movdqu xmmword [esp + 0x120], xmm0
call fcn.004a9fd0
push 0x3c
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.004e3fe0
add esp, 0xc
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0x505c84
mov dword [esp + 0xa0], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xc0], 0
xorps xmm0, xmm0
mov dword [esp + 0x140], 0
movq qword [esp + 0x138], xmm0
mov dword [esp + 0x13c], 0
mov dword [esp + method.NWindows::NControl::CDialog.virtual_0], 0x505ce4
movdqu xmmword [esp + 0x144], xmm0
mov dword [esp + 0x15c], 0
movq qword [esp + 0x154], xmm0
mov dword [esp + 0x148], 0
mov dword [esp + 0x144], 0x505c24
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0
mov word [esp + 0x15c], 0
movq qword [esp + 0x160], xmm0
mov dword [esp + 0x168], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov byte [esp + 0x178], 7
lea eax, [esp + 0xd4]
mov dword [esp + 0x24], 0x898
mov dword [esp + 0x28], 0x8fc
mov dword [esp + 0x2c], 0x960
mov dword [esp + 0x30], 0x837
mov dword [esp + 0x34], 0x9c4
mov dword [esp + 0x38], 0x835
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
xor edi, edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x110]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x144]
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edi
lea esp, [esp]
lea ecx, [esp + 0x160]
call fcn.004aa200
mov edi, dword [esp + edi + 0x24]
xor edx, edx
mov dword [esp + 0x3c], eax
mov dword [eax + 0x10], edi
add eax, 4
mov dword [esp + 0x40], eax
mov ecx, dword [eax]
mov dword [eax + 4], 0
xor eax, eax
mov word [ecx], ax
mov ecx, dword [0x5236ac]
test ecx, ecx
je 0x4a9ce4
jmp 0x4a9ca0
mov esi, dword [0x5236a8]
lea eax, [edx + ecx]
shr eax, 1
mov esi, dword [esi + eax*4]
cmp edi, esi
je 0x4a9cc1
jae 0x4a9cb8
mov ecx, eax
jmp 0x4a9cbb
lea edx, [eax + 1]
cmp edx, ecx
jne 0x4a9ca0
jmp 0x4a9ce4
test eax, eax
js 0x4a9ce4
mov edx, dword [0x5236b4]
mov edx, dword [edx + eax*4]
mov eax, dword [0x5236a4]
lea eax, [eax + edx*2]
test eax, eax
je 0x4a9ce4
mov ecx, dword [esp + 0x40]
push eax
call fcn.00412850
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + edi + 0xc]
add edi, 4
mov dword [ecx], eax
mov dword [esp + 0x48], edi
cmp edi, 0x18
jb 0x4a9c60
mov edx, 0x834
lea ecx, [esp + 0x30]
call fcn.004a1ed0
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x160]
push eax
mov byte [esp + 0x17c], 8
call fcn.004167a0
mov byte [esp + 0x178], 7
mov esi, eax
push dword [esp + 0x30]
call fcn.004df97b
add esp, 4
cmp esi, 0xffffffff
je 0x4a9da9
test esi, esi
je 0x4a9da9
cmp byte [esp + 0x15d], 0
je 0x4a9d9a
call fcn.004a6740
mov ecx, 0x523310
call fcn.0048ce60
mov ecx, 0x523310
call fcn.0049ace0
push 0xbba
mov ecx, 0x5236a4
call fcn.00411750
test eax, eax
je 0x4a9d8b
push eax
mov ecx, 0x523664
call fcn.00412850
jmp 0x4a9d9a
mov edx, 0x523664
mov ecx, 0xbba
call fcn.0041e240
mov ecx, 0x523310
call fcn.0048c620
call fcn.004a9850
mov byte [esp + 0x178], 6
mov esi, dword [esp + 0x164]
test esi, esi
je 0x4a9deb
mov eax, dword [esp + 0x160]
mov edi, dword [eax + esi*4 - 4]
dec esi
test edi, edi
je 0x4a9de7
push dword [edi + 4]
call fcn.004df97b
add esp, 4
push edi
call fcn.004df97b
mov eax, dword [esp + 0x164]
add esp, 4
test esi, esi
jne 0x4a9dc3
push dword [esp + 0x160]
call fcn.004df97b
mov byte [esp + 0x17c], 5
add esp, 4
mov esi, dword [esp + 0x154]
test esi, esi
je 0x4a9e36
lea ecx, [ecx]
mov eax, dword [esp + 0x150]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x4a9e32
push dword [edi]
call fcn.004df97b
add esp, 4
push edi
call fcn.004df97b
add esp, 4
test esi, esi
jne 0x4a9e10
push dword [esp + 0x150]
call fcn.004df97b
add esp, 4
mov byte [esp + 0x178], 2
mov dword [esp + method.NWindows::NControl::CDialog.virtual_0], vtable.NWindows::NControl::CDialog.0
mov dword [esp + method.NWindows::NControl::CDialog.virtual_0], vtable.NWindows::NControl::CDialog.0
mov dword [esp + 0x98], vtable.NWindows::NControl::CDialog.0
push dword [esp + 0x11c]
call fcn.004df97b
add esp, 4
mov dword [esp + method.NWindows::NControl::CDialog.virtual_0], vtable.NWindows::NControl::CDialog.0
push 0x410940
push 2
push 0x18
lea eax, [esp + 0x68]
mov byte [esp + 0x184], 9
push eax
call fcn.004e04d5
mov dword [esp + 0x4c], vtable.NWindows::NControl::CDialog.0
mov dword [esp + 0x178], 0xb
mov eax, dword [esp + 0x104]
test eax, eax
je 0x4a9ed3
push eax
mov dword [esp + 0x108], 0
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
lea ecx, [esp + 0xf4]
call fcn.004aa170
mov byte [esp + 0x178], 0xa
mov edi, dword [esp + 0xec]
test edi, edi
je 0x4a9f23
mov eax, dword [esp + 0xe8]
dec edi
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4a9f1f
push dword [esi + 0x10]
call fcn.004df97b
add esp, 4
push dword [esi]
call fcn.004df97b
add esp, 4
push esi
call fcn.004df97b
add esp, 4
test edi, edi
jne 0x4a9ef2
push dword [esp + 0xe8]
call fcn.004df97b
add esp, 4
lea ecx, [esp + 0xdc]
call fcn.004aa0f0
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.004df96c
add esp, 0x170
ret