Function at 0x4d9850
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5a2f38
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [edi]
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
call dword [eax + 0x54]
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov esi, dword [edi + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0
cmp esi, dword [edi + 0x34]
je 0x4d98d0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb8]
call eax
test eax, eax
je 0x4d98c8
inc dword [esp + 0x18]
add esi, 4
cmp esi, dword [edi + 0x34]
jne 0x4d98b4
mov esi, edi
mov edx, dword [esi + 0x1a0]
mov eax, edx
sub eax, dword [esi + 0x190]
mov ecx, dword [esi + 0x188]
sub eax, ecx
add eax, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x198]
add ecx, edx
cdq
idiv ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4d990f
mov eax, 0x80004005
jmp 0x4d9bae
mov eax, dword [esp + 0x18]
cdq
idiv ecx
mov dword [esp + 0x34], eax
test edx, edx
je 0x4d9923
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18c]
mov ecx, esi
mov dword [esp + 0x40], eax
xor edi, edi
mov eax, dword [esi]
call dword [eax + 0x40]
xor edx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
cmp dword [esp + 0x34], edx
jle 0x4d9b7f
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x4d9960
cmp dword [esi + 0x1bc], 0
je 0x4d9bcb
test edx, edx
jle 0x4d99d9
mov edx, dword [esi]
lea eax, [ecx - 1]
push eax
mov ecx, esi
mov eax, dword [edx + 0x44]
call eax
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x4d998e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [esp + 0x80], 0
test esi, esi
je 0x4d99b4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x6c]
call eax
mov ecx, dword [esp + 0xc]
add eax, dword [ecx + 0x1a4]
add dword [esp + 0x24], eax
mov dword [esp + 0x80], 0xffffffff
test esi, esi
je 0x4d99c9
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x4d9b66
mov dword [esp + 0x28], ecx
lea ecx, [ecx]
cmp ecx, dword [esp + 0x18]
jge 0x4d9b5a
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x44]
call eax
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x4d9a14
mov eax, dword [esi]
push esi
call dword [eax + 4]
inc edi
mov dword [esp + 0x80], 1
mov dword [esp + 0x30], edi
test esi, esi
je 0x4d9a77
jmp 0x4d9a30
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xb8]
call eax
test eax, eax
jne 0x4d9a77
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + edi*4]
cmp esi, edi
je 0x4d9a6a
test edi, edi
je 0x4d9a58
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, esi
mov esi, edi
mov dword [esp + 0x38], esi
test eax, eax
je 0x4d9a6a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x30]
inc edi
mov dword [esp + 0x30], edi
test esi, esi
jne 0x4d9a30
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x40]
add edi, dword [esp + 0x24]
mov dword [esp + 0x48], edi
mov ecx, dword [eax + 0x198]
mov eax, dword [eax + 0x1a0]
add eax, ecx
imul eax, dword [esp + 0x2c]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
add eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x6c]
call eax
add eax, edi
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esi]
push ecx
push 0x5c3394
push esi
call dword [eax]
mov ecx, dword [esp + 0x1c]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x80], 2
lea eax, [edx + 1]
test ecx, ecx
je 0x4d9af5
cmp dword [ecx + 0x11c], edx
cmovne eax, edx
test eax, eax
je 0x4d9b13
movdqu xmm0, xmmword [esp + 0x44]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov ecx, esi
movdqu xmmword [eax], xmm0
call dword [edx + 0x50]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x80], 1
test ecx, ecx
je 0x4d9b25
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc eax
mov edi, dword [esp + 0x30]
inc ecx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
cmp eax, dword [esp + 0x10]
jl 0x4d99f0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
inc edx
add ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp edx, dword [esp + 0x34]
jl 0x4d9960
mov ecx, esi
call fcn.004b06e0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x8c]
call eax
test eax, eax
je 0x4d9bac
mov ecx, dword [esi + 0x40]
sub esp, 0x10
movdqu xmm0, xmmword [esi + 0x54]
mov eax, esp
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1a4]
add ecx, dword [esi + 0x19c]
imul ecx, edx
mov dword [esp + 0x24], ecx
jmp 0x4d99d5