Function at 0x4082b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d3ed
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5f2100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, edi
sar eax, 0x10
mov ecx, edi
and ecx, 0xffff
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x28], ecx
shl ecx, 5
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [ebp + 0xc]
xor esi, esi
and eax, 0xffff
mov dword [ecx + 8], esi
lea ecx, [ebx + 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], eax
call dword [0x585538]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
push 6
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 0x48], esi
call fcn.00409560
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x50]
lea edx, [eax + eax*4]
lea eax, [esi + edx*4]
push eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403b10
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x34], eax
cmp eax, 1
jne 0x4084a2
mov eax, dword [ebx + 0x34]
cmp dword [ebx + 0x14], eax
jne 0x40836f
push ecx
mov ecx, ebx
call fcn.00404a80
cmp dword [ebp - 0x1c], 0
mov edi, dword [ebx + 0x14]
lea ecx, [edi + 1]
mov dword [ebx + 0x14], ecx
jne 0x408381
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebx + 0x30]
mov eax, edi
and eax, 0xffff
mov edx, edi
sar edx, 0x10
shl eax, 5
add eax, dword [ecx + edx*4]
mov edx, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, edx
mov dword [eax + 0x18], 0
mov esi, dword [ebx + 0x30]
sar edx, 0x10
mov edx, dword [esi + edx*4]
and ecx, 0xffff
shl ecx, 5
lea edx, [edx + ecx + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x408417
mov edx, ecx
sar edx, 0x10
add edx, edx
add edx, edx
and ecx, 0xffff
mov dword [ebp - 0x34], edx
mov edx, dword [edx + esi]
shl ecx, 5
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + ecx + 0x1c]
mov edx, ecx
mov dword [ebp - 0x38], ecx
sar edx, 0x10
mov edx, dword [esi + edx*4]
and ecx, 0xffff
shl ecx, 5
mov dword [edx + ecx + 0x18], edi
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + edx]
mov ecx, dword [ebp - 0x24]
mov dword [edx + ecx + 0x1c], edi
mov dword [eax + 0xc], 0
jmp 0x408423
mov dword [edx], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0xc], 0x80000
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x3c]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 8]
and edx, 0xffff0000
or ecx, edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], 0
mov ecx, dword [edx + 4]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
and esi, 0xffd00000
add ecx, esi
mov dword [eax + 8], ecx
test dword [edx + 0xc], 0x10000
je 0x408477
mov edi, dword [ebp + 8]
and ecx, 0x2fffff
mov dword [eax + 8], ecx
mov edx, dword [edx + 8]
mov dword [eax + 4], edx
jmp 0x408335
mov eax, dword [ebp - 0x48]
inc dword [ebp - 0x10]
inc eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x48], eax
cmp eax, dword [ebp - 0x4c]
jne 0x408335
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + eax + 6]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00409560
jmp 0x408335
test eax, eax
jne 0x4087ad
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edi
test eax, eax
je 0x40855c
lea edx, [eax + eax*4]
lea eax, [esi + edx*4 - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
call dword [case.0x493226.0]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov esi, dword [edx + 4]
sub esi, ecx
inc esi
test byte [edx + 0x10], 8
mov edx, dword [edx + 0xc]
push esi
push eax
mov dword [ebp - 0x38], eax
lea eax, [edx + ecx*2]
push eax
je 0x4084f3
call dword [0x5836e8]
jmp 0x4084f9
call dword [0x5836ec]
add esp, 0xc
test eax, eax
jne 0x40851f
mov ecx, dword [ebp - 0x38]
movzx eax, word [ecx + esi*2]
test ax, ax
je 0x408552
push eax
push 0x585f1c
call dword [0x583678]
add esp, 8
test eax, eax
jne 0x408552
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebx + 0x30]
sub dword [ebp - 0x20], 0x14
mov edx, ecx
and ecx, 0xffff
sar edx, 0x10
mov edx, dword [esi + edx*4]
shl ecx, 5
mov ecx, dword [edx + ecx + 0x10]
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test eax, eax
jne 0x4084c5
jmp 0x40855c
cmp dword [ebp - 0x14], 0
jne 0x408770
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edx + ecx*4]
mov eax, dword [ebp - 0x28]
shl eax, 5
or dword [edx + eax + 0xc], 0x800000
mov ecx, dword [ebx + 0x30]
lea eax, [edx + eax + 0xc]
mov eax, edi
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov edx, edi
and edx, 0xffff
shl edx, 5
or dword [eax + edx + 0xc], 0x200000
lea eax, [eax + edx + 0xc]
lea esi, [ebx + 4]
mov ecx, esi
call dword [0x5854d0]
test al, al
je 0x4085df
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00404c00
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [eax]
push edx
push eax
push 0x5859a8
push esi
mov byte [ebp - 4], 1
call dword [0x585544]
add esp, 0x18
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call dword [0x585524]
cmp dword [ebp - 0x14], 0
je 0x408335
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x10], ecx
jle 0x408857
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov eax, dword [eax + esi*4]
shl edx, 5
or dword [eax + edx + 0xc], 0x800000
lea eax, [eax + edx + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, edx
sub eax, ecx
sub edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebx + 0x30]
mov esi, edi
and esi, 0xffff
mov ecx, edi
sar ecx, 0x10
shl esi, 5
add esi, dword [edx + ecx*4]
and dword [esi + 8], 0x2fffff
mov eax, dword [esi + 8]
or dword [esi + 0xc], 0x100000
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
and eax, 0x2fffff
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x38], ecx
mov dword [ebp + 8], edx
mov dword [esi + 0x14], 0
test eax, 0x200000
je 0x40869f
xor eax, 0x200000
mov dword [esi + 0xc], eax
mov ebx, dword [ebx + 0x30]
mov eax, edx
sar eax, 0x10
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x30]
and edx, 0xffff
shl edx, 5
or dword [eax + edx + 0xc], 0x200000
lea eax, [eax + edx + 0xc]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x408700
mov ebx, dword [ebx + 0x30]
mov eax, ecx
sar eax, 0x10
add eax, eax
add eax, eax
mov ebx, dword [eax + ebx]
and ecx, 0xffff
shl ecx, 5
mov dword [ebx + ecx + 0x10], edx
mov edx, dword [ebp - 0x30]
mov ebx, dword [edx + 0x30]
mov ebx, dword [eax + ebx]
mov dword [ebx + ecx + 0x1c], edi
mov edx, dword [edx + 0x30]
mov ebx, edi
and edi, 0xffff
sar ebx, 0x10
mov edx, dword [edx + ebx*4]
shl edi, 5
mov ebx, edi
mov edi, dword [ebp - 0x38]
mov dword [edx + ebx + 0x18], edi
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebx + 0x30]
mov eax, dword [eax + edx]
mov ecx, dword [eax + ecx + 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x4086a3
dec dword [ebp - 0x48]
lea ecx, [ebx + 4]
mov edi, edx
call dword [0x5854d0]
test al, al
je 0x408848
cmp dword [ebp - 0x34], 0
jne 0x408822
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404c00
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x48]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + edx*4 + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx]
dec edx
push edx
push eax
lea eax, [ebx + 4]
push 0x585a00
push eax
mov byte [ebp - 4], 2
call dword [0x585544]
add esp, 0x20
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call dword [0x585524]
jmp 0x408848
mov eax, dword [ebp - 0x24]
mov edx, dword [ebx + 0x30]
mov ecx, eax
sar ecx, 0x10
and eax, 0xffff
shl eax, 5
add eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
sub edx, dword [eax]
add edx, dword [ecx + 8]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov edx, dword [eax + 8]
and edx, 0x2fffff
shl ecx, 0x16
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4085df
cmp eax, 0xffffffff
jne 0x408814
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov ecx, dword [ebp - 0x28]
shl ecx, 5
or dword [eax + ecx + 0xc], 0x800000
mov edx, dword [ebx + 0x30]
lea eax, [eax + ecx + 0xc]
mov ecx, edi
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
mov eax, edi
and eax, 0xffff
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
lea eax, [ecx + eax + 0xc]
lea ecx, [ebx + 4]
call dword [0x5854d0]
test al, al
je 0x408335
mov edx, dword [ebp - 0x18]
add edx, 0x10
push edx
lea ecx, [ebx + 4]
call dword [0x585548]
jmp 0x408335
cmp eax, 0xfffffffe
jne 0x408335
jmp 0x4085f2
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x10]
push ecx
push edx
lea eax, [ebx + 4]
push 0x585aa8
push eax
call dword [0x585544]
add esp, 0x10
dec dword [ebp - 0x24]
jne 0x408625
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
cmp eax, 0xfffffffe
je 0x408887
mov ecx, dword [ebx + 0x30]
mov eax, edi
sar eax, 0x10
mov edx, dword [ecx + eax*4]
and edi, 0xffff
shl edi, 5
mov edi, dword [edx + edi + 0x10]
mov eax, 1
sub dword [ebp - 0x48], eax
sub dword [ebp - 0x10], eax
mov dword [ebp + 8], edi
jmp 0x408335
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4088af
mov eax, dword [esi - 4]
push 0x456a60
lea edi, [esi - 4]
push eax
push 0x14
push esi
call fcn.005530b2
push edi
call fcn.00550536
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8