Function at 0x576484
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor esi, esi
mov ebx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
dec eax
je 0x576888
dec eax
je 0x576845
dec eax
je 0x576778
dec eax
je 0x5766e8
dec eax
je 0x576694
sub eax, 3
je 0x5764d5
mov esi, 0xc000000d
jmp 0x5768e9
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
cmp eax, 0x22
jb 0x5764cb
cmp eax, ecx
jbe 0x5764cb
xor edx, edx
push 0x1e
pop esi
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x576598
sub eax, ecx
lea esi, [ecx + edi]
cmp dword [esi], 3
mov dword [esp + 0x10], eax
jne 0x5764cb
cmp eax, 0x2e
jb 0x5764cb
mov edx, dword [esi + 0x14]
mov edi, dword [edx + esi]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], edi
cmp edi, 2
mov edi, dword [ebp + 8]
jne 0x576553
cmp ecx, 0x16
jb 0x5764cb
lea eax, [esi + 0x14]
add eax, edx
push eax
call fcn.00577c78
test eax, eax
je 0x576569
push eax
mov eax, dword fs:[0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.004236cc]
mov esi, 0xc00000bb
mov ebx, dword [esp + 0xc]
jmp 0x5768ca
cmp dword [esp + 0x18], 8
jne 0x5764cb
cmp ecx, 0x22
jb 0x5764cb
jmp 0x57656d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
push ecx
push eax
push esi
call fcn.00576484
mov esi, eax
test esi, esi
js 0x5768c8
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov dword [esp + 0x18], 0x28
add esi, 0x46
cmp dword [edi + 0x14], 1
jne 0x5765b8
lea ecx, [edi + 0x20]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5765a6
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
push esi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [fcn.004236c8]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x5765df
mov esi, 0xc000009a
jmp 0x5768c8
push esi
xor eax, eax
push eax
push ebx
call fcn.00580efa
mov dword [ebx], 8
mov dword [ebx + 8], esi
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x14], esi
jne 0x57660a
mov dword [ebx + 0x10], esi
mov eax, dword [edi + 0x1c]
push 0x1e
mov dword [ebx + 0x14], eax
pop esi
jmp 0x576652
add edi, 0x20
mov ecx, edi
mov dword [ebx + 0x10], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x576619
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push edi
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.0058050d
add esp, 0xc
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x57663c
sub edi, ecx
sar edi, 1
lea esi, [edi*2 + 0x1e]
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x57668d
mov edx, dword [esp + 0x18]
lea ecx, [esi + ebx]
mov dword [ecx], edi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
add eax, edx
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 6
mov eax, dword [esp + 0x14]
push dword [eax + 8]
push eax
lea eax, [ecx + edx]
push eax
call fcn.00580eee
add esp, 0xc
mov dword [ebx + 0x18], esi
mov esi, edi
jmp 0x5768ca
add edi, 0x14
cmp dword [ebp + 0xc], 0x15
jb 0x5764cb
cmp dword [ebp + 0xc], 0x20
jb 0x5764cb
cmp dword [edi + 8], 0x100000
ja 0x5764cb
push dword [edi + 8]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [fcn.004236c8]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x5765d5
push dword [edi + 8]
push edi
push ebx
call fcn.00580eee
jmp 0x5768c5
mov edx, dword [ebp + 0xc]
cmp edx, 0x2e
jb 0x5764cb
mov esi, dword [edi + 0x14]
test esi, esi
je 0x5764cb
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
sub edx, esi
lea ecx, [esi + edi]
push edx
push ecx
lea edi, [esp + 0x1c]
call fcn.005768fe
mov esi, eax
test esi, esi
js 0x5768c8
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
add edi, 0x28
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [fcn.004236c8]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x5767da
push edi
xor eax, eax
push eax
push esi
call fcn.00580efa
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], 3
lea eax, [esi + 0x28]
jmp 0x576818
mov edx, dword [ebp + 0xc]
cmp edx, 0x2e
jb 0x5764cb
mov esi, dword [edi + 0x14]
test esi, esi
je 0x5764cb
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
sub edx, esi
lea ecx, [esi + edi]
push edx
push ecx
lea edi, [esp + 0x1c]
call fcn.005768fe
mov esi, eax
test esi, esi
js 0x5768c8
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
add edi, 0x14
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [fcn.004236c8]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x5767fa
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.004236cc]
mov esi, 0xc000009a
jmp 0x57654a
push edi
xor eax, eax
push eax
push esi
call fcn.00580efa
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], 5
lea eax, [esi + 0x14]
push dword [ebx + 4]
push dword [esp + 0x14]
push eax
call fcn.00580eee
mov eax, dword fs:[0x30]
add esp, 0xc
push dword [esp + 0x10]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.004236cc]
mov esi, edi
jmp 0x57654a
cmp dword [ebp + 0xc], 0x16
jb 0x5764cb
add edi, 0x14
push edi
call fcn.0057aa36
test al, al
jne 0x576863
mov esi, 0xc00000bb
jmp 0x5768c8
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00577520
mov ebx, dword [esp + 0xc]
mov esi, eax
xor edi, edi
test esi, esi
js 0x5768ca
jmp 0x57668d
cmp dword [ebp + 0xc], 0x14
jb 0x5764cb
mov eax, dword fs:[0x30]
push 0x48
pop edi
push edi
push esi
push dword [eax + 0x18]
call dword [fcn.004236c8]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x5765d5
push edi
push esi
push ebx
call fcn.00580efa
mov dword [ebx], 5
mov dword [ebx + 8], edi
add esp, 0xc
xor edi, edi
cmp dword [esp + 0x14], 0
je 0x5768e9
push dword [esp + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.004236cc]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10