Function at 0x4ba250
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfc5b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x6510e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xbc], eax
mov edi, dword [ebx + 8]
mov edx, dword [eax]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov esi, dword [eax + 0x80]
mov eax, 1
add esi, dword [edx + 0x10]
cmp esi, eax
cmovb esi, eax
mov eax, dword [edx + 0xd4]
push esi
mov dword [ebp - 0xcc], esi
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
mov eax, dword [ebp - 0xbc]
xorps xmm0, xmm0
mov dword [ebp - 0x30], esi
movups xmmword [ebp - 0x160], xmm0
mov ecx, dword [eax]
movups xmmword [ebp - 0x150], xmm0
movups xmmword [ebp - 0x140], xmm0
mov eax, dword [ecx + 0x58]
add eax, dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb0], eax
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], eax
mov al, byte [ebp - 0x110]
and al, 0xfc
movups xmmword [ebp - 0x130], xmm0
mov byte [ebp - 0x99], al
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
add eax, ecx
mov dword [ebp - 0xa8], eax
cmp ecx, eax
je 0x4ba3ab
mov edx, dword [edi + 0x2c]
mov esi, dword [edi + 0x28]
nop dword [eax]
lea eax, [edx - 1]
and eax, ecx
mov eax, dword [esi + eax*4]
test byte [eax + 0x58], 1
je 0x4ba492
inc ecx
cmp ecx, dword [ebp - 0xa8]
jne 0x4ba390
cmp dword [edi + 0x34], 0
setne al
mov cl, byte [ebp - 0x99]
xorps xmm0, xmm0
and cl, 0xfe
mov esi, dword [ebp - 0xbc]
or cl, al
lea eax, [ebp - 0x168]
push eax
push dword [ebx + 0x1c]
mov byte [ebp - 0x99], cl
sub esp, 0x20
mov byte [ebp - 0x110], cl
mov eax, esp
mov ecx, esi
sub esp, 0x20
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov eax, esp
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [eax + 0x10], xmm0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.004ba9d0
mov esi, dword [esi]
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [esi + 4]
add ecx, 0x24
call fcn.004d5990
mov eax, dword [ebx + 0xc]
add eax, 5
mov dword [ebp - 0xe0], 0x10
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xcc]
add eax, 0xfffffff0
mov dword [ebp - 0xdc], 0x10
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xe4], eax
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x4ba499
mov al, byte [edi + 0x3c]
lea edx, [ebp - 0xa0]
mov esi, dword [ebp - 0xb0]
push edx
mov byte [ebp - 0xa0], al
lea edx, [ebp - 0xe8]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 8]
jmp 0x4ba4f2
xor al, al
jmp 0x4ba3b2
push str.double
lea ecx, [ebp - 0xc8]
call fcn.004ef030
mov esi, dword [ebp - 0xb0]
lea ecx, [ebp - 0xc8]
xor eax, eax
xorps xmm0, xmm0
cmp byte [edi + 0x3c], al
push 0
sete al
inc eax
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x88], xmm0
call fcn.004ef1f0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4ba4fc
mov ecx, dword [edi]
mov eax, dword [ebx + 0xc]
add eax, 0x14
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0xac]
push ecx
push eax
mov ecx, esi
call fcn.0047ce40
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ba540
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0047bd00
cmp byte [edi + 0x3d], 0
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
je 0x4ba898
mov ecx, dword [edi + 0x34]
lea esi, [ebp - 0x17]
mov dword [ebp - 0xa4], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa4]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x4ba570
lea eax, [ebp - 0x17]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
cmp esi, eax
jne 0x4ba5cf
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
jmp 0x4ba5de
lea eax, [ebp - 0x17]
sub eax, esi
lea ecx, [ebp - 0x74]
push eax
push esi
call fcn.00404a8b
push 0x28
push 1
push 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00420c68
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0xb8], ecx
cmp edi, ecx
jae 0x4ba641
lea eax, [edi + 1]
cmp ecx, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov word [eax + edi], 0x29
jmp 0x4ba74e
mov edx, SysReAllocString
mov eax, edx
sub eax, edi
cmp eax, 1
jb 0x4ba9b6
lea esi, [edi + 1]
or esi, 0xf
cmp esi, edx
jbe 0x4ba661
mov esi, edx
jmp 0x4ba679
mov eax, ecx
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4ba672
mov esi, SysReAllocString
jmp 0x4ba679
add eax, ecx
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov dword [ebp - 0xa4], esi
add esi, 1
setb cl
neg ecx
or ecx, esi
cmp ecx, 0x1000
jb 0x4ba6ba
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4ba9bb
push eax
call fcn.00581343
add esp, 4
test eax, eax
je 0x4ba9c0
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4ba6cd
test ecx, ecx
je 0x4ba6cb
push ecx
call fcn.00581343
add esp, 4
mov esi, eax
jmp 0x4ba6cd
xor esi, esi
cmp dword [ebp - 0xb8], 0x10
lea eax, [edi + 1]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x30], eax
push edi
jb 0x4ba738
push dword [ebp - 0x44]
push esi
call fcn.00582dc0
mov edx, dword [ebp - 0xb8]
add esp, 0xc
mov eax, dword [ebp - 0x44]
inc edx
mov word [edi + esi], 0x29
mov ecx, eax
cmp edx, 0x1000
jb 0x4ba72c
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0xb8], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4ba9c0
mov eax, dword [ebp - 0xb8]
push edx
push eax
call fcn.005815c4
add esp, 8
jmp 0x4ba74b
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00582dc0
add esp, 0xc
mov word [edi + esi], 0x29
mov dword [ebp - 0x44], esi
movups xmm0, xmmword [ebp - 0x44]
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.004e5470
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x4ba7c2
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba7b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba9c0
push ecx
push edx
call fcn.005815c4
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x4ba7fa
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba7f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba9c0
push ecx
push edx
call fcn.005815c4
add esp, 8
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx + 0xc]
cmovae ecx, dword [ebp - 0x5c]
add eax, 0x19
mov edi, dword [ebp - 0xa8]
add eax, edi
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push ecx
push eax
mov ecx, esi
call fcn.0047cd20
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
mov ecx, esi
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0047bd00
mov ecx, dword [ebp - 0x48]
add edi, dword [eax]
cmp ecx, 8
jb 0x4ba89e
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4ba88c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba9c5
push ecx
push edx
call fcn.005815c4
add esp, 8
jmp 0x4ba89e
mov edi, dword [ebp - 0xa8]
lea ecx, [edi + 0x23]
cmp ecx, dword [ebp - 0xd0]
jae 0x4ba963
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0xcc]
add ecx, 0x1e
add ecx, edi
cdq
sub eax, edx
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebx + 0xc]
sar eax, 1
add ecx, 0xfffffffb
add eax, dword [ebp - 0xb4]
add ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xd0], eax
mov eax, dword [esi]
mov dword [ebp - 0xd4], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x4ba94e
movsd xmm0, qword [ebp - 0x108]
call fcn.005aacc0
movsd xmm0, qword [ebp - 0x100]
movzx edi, al
call fcn.005aacc0
movsd xmm0, qword [ebp - 0xf8]
movzx esi, al
shl esi, 8
call fcn.005aacc0
mov ecx, dword [ebp - 0xc0]
movzx edx, al
mov eax, edi
shl eax, 0x10
or eax, edx
shl edx, 0x10
or eax, esi
or edx, esi
mov esi, dword [ebp - 0xb0]
or edx, edi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x30], edx
lea eax, [ebp - 0xd4]
mov ecx, esi
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0047ce80
test byte [ebp - 0x99], 1
je 0x4ba989
mov eax, dword [ebp - 0xd8]
cmp byte [eax + 0x3c], 0
jne 0x4ba989
push dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xbc]
call fcn.004bbc20
xor esi, esi
mov dword [ebp - 4], 0xffffffff
xor edi, edi
xor esi, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00581335
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x38
call fcn.004015ed
call fcn.00401549
call fcn.00586698
call fcn.00586698
int3