Function at 0x410220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x535dc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
inc eax
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x18], esi
call fcn.004f16c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x88], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x54]
push 0x1000
mov dword [esp + 0x20], ebx
mov dword [esi], 0x53b3e4
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x84], edx
mov dword [esi + 0x90], eax
call fcn.004e5da0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 4
mov dword [esi + 0x94], eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004f17f0
mov eax, dword [esi + 0x40]
mov cl, byte [esp + 0x24]
shr cl, 1
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x44]
mov byte [eax + edx*4 - 0x18], cl
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
lea ecx, [ecx + ecx*8]
mov dl, byte [eax + ecx*4 - 0x18]
mov cl, byte [esp + 0x28]
mov byte [eax + 0xc], dl
mov eax, dword [esi + 0x40]
shr cl, 1
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x44]
mov byte [eax + edx*4 - 0x17], cl
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
lea ecx, [ecx + ecx*8]
mov dl, byte [eax + ecx*4 - 0x17]
mov cl, byte [esp + 0x2c]
mov byte [eax + 0xd], dl
mov eax, dword [esi + 0x40]
shr cl, 1
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x44]
mov byte [eax + edx*4 - 0x16], cl
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
mov edi, dword [esp + 0x3c]
lea ecx, [ecx + ecx*8]
mov dl, byte [eax + ecx*4 - 0x16]
mov ecx, esi
mov byte [eax + 0xe], dl
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
call fcn.004f1830
mov eax, 0x66666667
imul edi
mov eax, dword [esi + 0x40]
sar edx, 4
mov ecx, edx
lea eax, [eax + eax*8]
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esi + 0x44]
mov word [ecx + eax*4 - 0x14], dx
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
lea edx, [ecx + ecx*8]
mov cx, word [eax + edx*4 - 0x14]
mov word [eax + 0x10], cx
mov eax, dword [esp + 0x24]
mov ecx, 0xff
and eax, ecx
shl eax, 1
mov ebp, eax
cmp ebp, ecx
jle 0x4103aa
mov ebp, ecx
mov eax, dword [esp + 0x28]
and eax, ecx
shl eax, 1
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x4103be
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x2c]
and eax, ecx
shl eax, 1
cmp eax, ecx
mov dword [esp + 0x24], eax
jle 0x4103d2
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
je 0x4103df
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [0x547e40]
push 1
push ebx
push 1
push ebx
push 0x48
cmp eax, ebx
call fcn.004581a0
mov edx, eax
mov ecx, 0x12
xor eax, eax
mov edi, edx
add esp, 0x14
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
cmp edx, ebx
mov byte [esp + 0x1c], 1
je 0x41041e
mov eax, dword [esi + 0x40]
push ebx
push eax
mov ecx, edx
call fcn.004f16c0
jmp 0x410420
xor eax, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x48], eax
push ecx
mov byte [eax + 0x3a], 1
mov ecx, dword [esi + 0x48]
push edx
push ebp
mov byte [esp + 0x28], bl
call fcn.004f17f0
mov eax, 0x66666667
mov ecx, dword [esi + 0x48]
imul dword [esp + 0x3c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
call fcn.004f1830
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x34