Function at 0x459440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50dfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 8]
sub ecx, dword [edx + 0xc]
mov dword [esp + 0x1c], edx
sar ecx, 3
mov dword [esp + 0x20], ecx
xor edx, edx
mov dword [esp + 0x30], edx
mov ecx, dword [ebx + 0xc]
mov edi, dword [eax + 8]
cmp ecx, edx
jl 0x4594bd
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x5c]
push ecx
call fcn.0046bbc0
mov edx, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
add dword [edi + 8], 8
add esp, 4
xor edx, edx
jmp 0x4594c7
mov ecx, dword [edi + 8]
mov dword [ecx + 4], edx
add dword [edi + 8], 8
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov edi, dword [eax + 8]
sub edi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov ebx, dword [ebp + 8]
sar edi, 3
mov dword [ecx + 4], edx
add dword [eax + 8], 8
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 1
mov byte [esp + 0x12], 0
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 8]
push 5
mov ecx, edi
mov edx, esi
call fcn.004569f0
mov esi, dword [esi + 8]
mov ecx, edi
mov edx, esi
call fcn.00459fd0
mov ecx, dword [esi + 8]
mov edx, dword [eax]
sub ecx, 8
mov eax, esi
call fcn.0046b320
test eax, eax
je 0x459734
add dword [esi + 8], 8
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
sub eax, 0x10
cmp eax, 0x517570
je 0x4596b4
cmp dword [eax + 4], 4
jne 0x4596b4
push 4
mov ecx, 0xfffffffe
mov edx, esi
call fcn.004569f0
mov edi, dword [esi + 8]
mov esi, dword [edi + 8]
sub esi, 0x10
cmp dword [esi + 4], 4
je 0x45958f
call fcn.0046d4b0
test eax, eax
je 0x459594
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x459589
push edi
call fcn.0046d270
add esp, 4
mov esi, dword [edi + 8]
sub esi, 0x10
mov eax, dword [esi]
add eax, 0x10
mov ecx, 0x51b8ec
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4595c0
test dl, dl
je 0x4595bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4595c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4595a0
xor eax, eax
jmp 0x4595c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45971d
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4595ec
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 1
lea eax, [esp + 0x17]
push eax
mov ecx, ebx
mov byte [esp + 0x1b], 0x20
call edx
dec esi
jne 0x4595d4
cmp byte [ebp + 0x10], 0
je 0x4595fc
push 0x51babc
call fcn.00459260
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
push 4
mov ecx, 0xfffffffe
mov edx, esi
call fcn.004569f0
mov edi, dword [esi + 8]
mov esi, dword [edi + 8]
sub esi, 0x10
cmp dword [esi + 4], 4
je 0x459647
call fcn.0046d4b0
test eax, eax
jne 0x45962d
xor esi, esi
jmp 0x45964c
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x459641
push edi
call fcn.0046d270
add esp, 4
mov esi, dword [edi + 8]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
push esi
call fcn.00459260
cmp byte [ebp + 0x10], 0
je 0x459662
push 0x51bac0
call fcn.00459260
push 0x51bac4
call fcn.00459260
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push ebx
call fcn.004592b0
cmp byte [ebp + 0x10], 0
je 0x459689
push 0x513318
call fcn.00459260
push 0x51bab0
call fcn.00459260
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x18]
add dword [eax + 8], 0xfffffff8
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0
jmp 0x4594f1
cmp byte [esp + 0x12], 0
jne 0x459705
cmp byte [esp + 0x13], 0
je 0x4596ea
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4596f8
lea esp, [esp]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 1
lea eax, [esp + 0x17]
push eax
mov ecx, ebx
mov byte [esp + 0x1b], 0x20
call edx
dec esi
jne 0x4596d0
jmp 0x4596f8
push 0x513318
call fcn.00459260
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push ebx
call fcn.004592b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 8]
add dword [eax + 8], 0xfffffff8
mov byte [esp + 0x13], 0
jmp 0x4594f1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x18]
add dword [eax + 8], 0xfffffff8
jmp 0x4594f1
mov eax, dword [esp + 0x20]
add dword [esi + 8], 0xfffffff8
test eax, eax
js 0x459795
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
add eax, eax
add eax, eax
add eax, eax
add edx, eax
cmp dword [ecx + 8], edx
jae 0x459778
jmp 0x459760
mov edx, dword [ecx + 8]
mov dword [edx + 4], 0
add dword [ecx + 8], 8
mov edx, dword [ecx + 0xc]
add edx, eax
cmp dword [ecx + 8], edx
jb 0x459760
mov edx, dword [ecx + 0xc]
add edx, eax
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [eax*8 + 8]
mov eax, dword [esp + 0x1c]
add dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc