Function at 0x4a6580
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502435
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov al, byte [ecx]
mov byte [edi], al
movq qword [edi + 8], xmm0
movzx eax, byte [edi]
dec eax
cmp eax, 7
ja case.default.0x4a627c
jmp dword [eax*4 + 0x4a6560]
mov esi, dword [ecx + 8]
push 8
movlpd qword [ebp - 0x24], xmm0
call fcn.00498569
mov ebx, eax
lea eax, [ebp - 0x19]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
push 0x38
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00498569
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
push dword [ebp - 0x30]
mov ecx, ebx
mov byte [ebp - 4], 1
push eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0049e810
mov ecx, eax
mov eax, dword [ebx]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov esi, dword [ebx]
mov dword [ebx + 4], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x4a633a
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x4a6311
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4a6305
mov dword [esi], edx
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x4a632c
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x4a6321
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], ecx
mov dword [edi + 0xc], eax
jmp 0x4a6532
mov dword [esi], esi
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
jmp 0x4a6532
mov esi, dword [ecx + 8]
push 0xc
movlpd qword [ebp - 0x18], xmm0
call fcn.00498569
mov ecx, eax
add esp, 4
lea eax, [ebp - 0x19]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], edx
cmp eax, edx
je 0x4a63fe
mov esi, edx
sub esi, eax
sar esi, 4
push esi
call fcn.004b58e0
mov ebx, eax
shl esi, 4
mov eax, dword [ebp - 0x28]
add esi, ebx
mov dword [ebp - 0x20], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 4
nop word [eax + eax]
push esi
mov ecx, ebx
call fcn.004a6230
add ebx, 0x10
add esi, 0x10
mov dword [ebp - 0x3c], ebx
cmp esi, edi
jne 0x4a63e0
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
mov dword [ecx + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
jmp case.default.0x4a627c
push dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.004a7540
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp case.default.0x4a627c
mov al, byte [ecx + 8]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp case.default.0x4a627c
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp case.default.0x4a627c
movsd xmm0, qword [ecx + 8]
movsd qword [edi + 8], xmm0
jmp case.default.0x4a627c
mov esi, dword [ecx + 8]
push 0x20
mov dword [ebp - 0x34], esi
movlpd qword [ebp - 0x18], xmm0
call fcn.00498569
mov ebx, eax
add esp, 4
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 6
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, ecx
je 0x4a651a
sub ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, 0x1000
jb 0x4a64e0
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4a6555
push eax
call fcn.00498569
add esp, 4
test eax, eax
je 0x4a655a
mov ecx, dword [ebp - 0x28]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4a64f6
test ecx, ecx
je 0x4a64f4
push ecx
call fcn.00498569
mov ecx, dword [ebp - 0x28]
add esp, 4
mov esi, eax
jmp 0x4a64f6
xor esi, esi
push ecx
push dword [ebp - 0x2c]
mov dword [ebx], esi
lea eax, [esi + ecx]
mov dword [ebx + 4], esi
push esi
mov dword [ebx + 8], eax
call fcn.004cd990
sub esi, dword [ebp - 0x2c]
add esp, 0xc
add esi, dword [ebp - 0x30]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
mov cl, byte [esi + 0x18]
mov byte [ebx + 0x18], cl
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 4
call fcn.004030f0
call fcn.004d076f
nop
and dword [edx + 0x4a], 0
dec esp
arpl word [edx], cx
or al, 0x64
dec edx
add byte [eax], ch
dec edx
add byte [edi], bh
dec edx
add byte [edi], bh
dec edx
add byte [eax + 0x64], dl
dec edx
add byte [edi + 0x64], bl
dec edx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5024ac
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53d058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4a6634
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [edi + 0x60], al
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x68], 9
call fcn.004a75c0
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
test ecx, ecx
jns 0x4a6676
mov eax, ecx
neg eax
je 0x4a6676
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x4a667e
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.0042e7f0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x4a66ad
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30