Function at 0x500190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009035c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0
push 0x10305
lea ecx, [esi + 0x84]
mov dword [esp + 0x1c], esi
call fcn.0050fc60
mov dword [esp + 0x5c], 0
mov dword [esi + 0x168], 0x100af824
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebx, [esp + 0x14]
lea edi, [esi + 0x1ac]
mov ebp, 0x10
mov eax, dword [ebx]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [0x100af514]
mov dword [edi], eax
add ebx, 4
add edi, 4
dec ebp
jne 0x500267
mov ecx, dword [esp + 0x64]
mov ebx, 1
mov byte [esp + 0x5c], bl
mov dword [esi], 0x100af834
lea eax, [ecx - 1]
cmp eax, 0x1f
ja 0x5002af
xor edx, edx
mov dl, byte [eax + 0x100147ac]
jmp dword [edx*4 + 0x100147a4]
mov dword [esi + 8], 0x20
mov ecx, esi
call fcn.00500e90
test eax, eax
jne 0x5002cb
push eax
call dword [0x100af510]
mov dword [esi + 0x48], eax
lea edi, [esi + 0x30]
push edi
call dword [0x100af134]
mov eax, dword [esp + 0x6c]
mov ecx, dword [edi]
xor ebp, ebp
mov dword [esi + 0x14], eax
push ebp
push eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], 0xcc0020
push eax
push ecx
mov dword [esi + 0x10], ebx
call fcn.00510600
mov dword [edi], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 4], edx
mov dl, byte [esp + 0x68]
mov edi, dword [0x100af0c8]
push 0x76
push eax
mov byte [esi + 0x18], dl
call edi
mov ecx, dword [esi + 0x48]
push 0x75
push ecx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, 0x20
cdq
idiv dword [esi + 8]
mov edx, dword [esi + 0x48]
mov edi, dword [0x100af0bc]
push edx
mov dword [esi + 0x28], ebp
mov byte [esi + 0x24], al
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x48]
push eax
call edi
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x50], eax
push ecx
call edi
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 8]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x1c]
push edx
lea edi, [esi + 0x58]
lea ebx, [esi + 0x5c]
push eax
push ecx
mov ecx, esi
mov dword [edi], ebp
mov dword [ebx], ebp
call fcn.00500cf0
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 8]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00500cf0
mov edx, dword [esi + 0x64]
push ebp
push ebp
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x48]
push edi
mov edi, dword [0x100af0c0]
push ebp
push edx
push eax
call edi
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x48]
push ebp
push ebp
push ebx
push ebp
push ecx
push edx
call edi
mov ecx, dword [esi + 0x4c]
mov edi, dword [0x100af0c4]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x6c]
push eax
push ecx
call edi
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x50]
push edx
push eax
call edi
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx + 0x14]
shl edx, 1
push edx
call fcn.005103a6
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x7c], ebp
xor edx, edx
add esp, 4
mov eax, dword [eax + 0x14]
div ecx
mov edx, dword [esi + 8]
push 6
push edx
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
lea ecx, [esi + 0x84]
call fcn.0050fcb0
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0xc