Function at 0x578770
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 0x5da36e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x6dd1e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x98], edi
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, edi
push dword [esi + 0x30]
call fcn.004fcac0
push dword [esi + 0x44]
mov ecx, edi
mov dword [ebp - 0x90], eax
call fcn.004fcac0
mov esi, dword [ebp - 0x98]
mov ecx, edi
mov dword [ebp - 0x8c], eax
mov edx, dword [esi + 0xc]
push dword [edx + 0xc]
call fcn.004fcac0
mov edi, dword [0x5de7fc]
push 0
push 0
push 0x1004
push dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
call edi
mov dword [ebp - 0x94], eax
test eax, eax
je 0x578cae
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.0051e180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
call fcn.0051e180
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.0051e180
push 1
push 0
push 0
push 0x24
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0051d750
mov ecx, eax
call fcn.0051da50
call fcn.0051a560
movsd xmm1, qword [0x6be4d8]
lea ecx, [ebp - 0x3c]
comisd xmm1, xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
jbe 0x5788be
push 0x67c9d8
jmp 0x5788c3
push 0x67c1e4
call fcn.0051c4c0
push 0
push 0
push 0x1004
push dword [ebp - 0x8c]
call edi
mov edi, eax
mov dword [esi + 0x18], edi
test edi, edi
jne 0x5788ed
mov dword [esi + 0x24], eax
mov dword [esi + 0x1c], eax
jmp 0x578985
xor ecx, ecx
mov eax, edi
mov edx, 0xc
mul edx
push 0x6ddae0
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0041eed3
add esp, 8
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x578947
push fcn.0051dfd0
push fcn.0051e180
push edi
mov dword [eax], edi
add eax, 4
push 0xc
push eax
mov dword [ebp - 0x18], eax
call fcn.0041eeff
mov eax, dword [ebp - 0x18]
jmp 0x578949
xor eax, eax
mov byte [ebp - 4], 2
xor ecx, ecx
mov dword [esi + 0x24], eax
mov edx, 4
mov eax, dword [esi + 0x18]
mul edx
push 0x6ddae0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041eed3
add esp, 8
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x24], 0
je 0x57897e
test eax, eax
jne 0x578985
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x578aa2
xor edi, edi
test eax, eax
jle 0x578aa2
xor ecx, ecx
mov dword [ebp - 0x18], ecx
nop
add ecx, dword [esi + 0x24]
push 0
push 0
push 0x400
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0x400
call fcn.0051d530
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
push edi
push 0x1073
push dword [ebp - 0x8c]
call dword [0x5de7fc]
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi + 0x24]
call fcn.0051df40
test eax, eax
je 0x578a8f
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi + 0x24]
push 0
call fcn.0051d7b0
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi + 0x24]
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x5fe504
call fcn.0051c760
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x578a8f
mov ecx, dword [esi + 0x24]
add ecx, dword [ebp - 0x18]
push 0
push eax
call fcn.0051dd30
push eax
lea ecx, [ebp - 0x30]
call fcn.0051baa0
push 0x5fe654
lea ecx, [ebp - 0x30]
call fcn.0051e060
test al, al
je 0x578a51
mov eax, dword [esi + 0x1c]
mov dword [eax + edi*4], 2
jmp 0x578a75
push 0x616108
lea ecx, [ebp - 0x30]
call fcn.0051e060
test al, al
mov eax, dword [esi + 0x1c]
je 0x578a6e
mov dword [eax + edi*4], 1
jmp 0x578a75
mov dword [eax + edi*4], 0
mov eax, dword [esi + 0x1c]
cmp dword [eax + edi*4], 0
je 0x578a8f
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x9c]
add ecx, dword [esi + 0x24]
call fcn.0051cb00
mov ecx, dword [ebp - 0x18]
inc edi
add ecx, 0xc
mov dword [ebp - 0x18], ecx
cmp edi, dword [esi + 0x18]
jl 0x5789a0
push 0
push 0x20019
push 0x6395f8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00518860
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.005188f0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
push 0x67c9b8
lea ecx, [ebp - 0x18]
call fcn.005186a0
cmp dword [ebp - 0x44], 7
jne 0x578b16
cmp dword [ebp - 0x48], 7
jbe 0x578b16
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x604a10
push dword [ebp - 0x4c]
lea ecx, [esi + 0x28]
push 0x604a10
call fcn.0051dda0
jmp 0x578b25
push 1
push 0x67c9ec
lea ecx, [esi + 0x28]
call fcn.0051de00
mov eax, dword [ebp - 0xa0]
xor edi, edi
mov dword [esi + 0x20], eax
mov byte [esi + 0x11], 0
cmp dword [ebp - 0x94], edi
jle 0x578c38
cmp byte [esi + 0x11], 0
jne 0x578c38
push 0
push 0
push 0x400
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0x400
call fcn.0051d530
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
push edi
push 0x1073
push dword [ebp - 0x90]
call dword [0x5de7fc]
lea ecx, [ebp - 0x24]
call fcn.0051df40
test eax, eax
je 0x578c2b
push 0
lea ecx, [ebp - 0x24]
call fcn.0051d7b0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x5fe504
lea ecx, [ebp - 0x24]
call fcn.0051c760
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x578c2b
push 0
push 1
push 1
push 0
lea ecx, [ebp - 0x3c]
call fcn.0051dd30
push eax
lea ecx, [ebp - 0x24]
call fcn.0051c760
test eax, eax
jne 0x578c2b
push eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x24]
call fcn.0051dd30
push eax
lea ecx, [ebp - 0x30]
call fcn.0051baa0
push 0x5fe654
lea ecx, [ebp - 0x30]
call fcn.0051e060
mov byte [esi + 0x10], al
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x8c]
dec eax
push eax
call fcn.0051cb00
push esi
lea ecx, [ebp - 0x24]
call fcn.0051dd30
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.00578410
add dword [esi + 0x14], eax
inc edi
cmp edi, dword [ebp - 0x94]
jl 0x578b40
mov eax, dword [esi + 0x24]
test eax, eax
je 0x578c71
push fcn.0051dfd0
lea esi, [eax - 4]
mov byte [ebp - 4], 6
push dword [esi]
push 0xc
push eax
call fcn.0041eb24
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e89b
mov esi, dword [ebp - 0x98]
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x578c81
push eax
call fcn.0041e896
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.005188e0
lea ecx, [ebp - 0x18]
call fcn.005187c0
lea ecx, [ebp - 0x3c]
call fcn.0051dfd0
lea ecx, [ebp - 0x24]
call fcn.0051dfd0
lea ecx, [ebp - 0x30]
call fcn.0051dfd0
mov eax, 1
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.0041e885
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4