Function at 0x50c880
Capabilities:
Access peb ldr_data
Get process heap flags

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 0x5f2e94
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x704200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
lea ecx, [esi + 0x18]
xorps xmm0, xmm0
mov dword [esi + 0x30], 0xfffffffb
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
movsd qword [esi + 0x40], xmm0
call fcn.00545760
mov ecx, esi
call fcn.00545760
lea ecx, [esi + 0xc]
call fcn.00545760
lea ecx, [esi + 0x24]
call fcn.00545760
push ecx
push 0
lea ecx, [esi + 0x48]
call fcn.00403a90
mov ecx, edi
call fcn.00542020
cmp eax, 0xa
jge 0x50c925
mov eax, dword [esi + 0x30]
jmp 0x50cd98
push ecx
lea ecx, [esi + 0x54]
call fcn.00513920
test al, al
je 0x50c91d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00545940
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
call fcn.00545940
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.00545940
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 0x6228f4
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50c9a4
lea ecx, [ebp - 0x20]
call fcn.00544370
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x20]
push eax
push 0x622900
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50cc8e
lea ecx, [ebp - 0x20]
call fcn.00544370
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x54]
lea eax, [esi + 0x18]
push eax
push 0x62291c
push 0
call fcn.005130c0
lea eax, [esi + 0x24]
push eax
push 0x622934
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50ca00
lea ecx, [esi + 0x24]
call fcn.005451f0
test al, al
je 0x50ca36
lea eax, [esi + 0x24]
push eax
push 0x62293c
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50ca23
lea ecx, [esi + 0x24]
call fcn.005451f0
test al, al
je 0x50ca36
lea eax, [esi + 0x24]
push eax
push 0x622944
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
mov edi, dword [esi + 0x30]
cmp edi, 1
jl 0x50cd7e
push esi
push 0x622958
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
mov ecx, esi
call fcn.005454f0
mov ecx, eax
call fcn.00506b00
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x34]
test eax, eax
jle 0x50ccea
test byte [ebx + 0xc], 1
jne 0x50ccea
push ecx
push eax
lea ecx, [esi + 0x48]
call fcn.00403a90
xor edi, edi
mov dword [ebp - 0x44], 0
push edi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x40], edi
push eax
xorps xmm0, xmm0
lea ecx, [esi + 0x54]
push 0x62296c
movups xmmword [ebp - 0x54], xmm0
call fcn.00513340
test al, al
je 0x50cc7d
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x54]
call fcn.00512c30
test al, al
je 0x50cc7d
xor ecx, ecx
lea edx, [esi + 0x54]
mov dword [ebp - 0x3c], ecx
nop
cmp dword [esi + 0x48], edi
ja 0x50cadb
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x50]
add eax, ecx
mov ecx, edx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.005131d0
test al, al
je 0x50cc55
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x622978
lea ecx, [esi + 0x54]
call fcn.00513340
test al, al
je 0x50cc55
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x54]
call fcn.00513160
test eax, eax
je 0x50cc55
push str.true
lea ecx, [ebp - 0x20]
call fcn.00545820
test al, al
je 0x50cb94
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x62298c
lea ecx, [esi + 0x54]
call fcn.00513340
cmp dword [esi + 0x48], edi
ja 0x50cb5a
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x50]
add ecx, 0xc
add eax, ecx
lea ecx, [esi + 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00513160
cmp dword [esi + 0x48], edi
ja 0x50cb7d
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x50]
add ecx, 0xc
add ecx, dword [ebp - 0x3c]
push str.null
call fcn.00545820
test al, al
je 0x50cbb2
cmp dword [esi + 0x48], edi
ja 0x50cb9f
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0xc
add ecx, dword [esi + 0x50]
push 0x62299c
call fcn.00545870
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x6229a8
lea ecx, [esi + 0x54]
call fcn.00513340
test al, al
je 0x50cc37
cmp dword [esi + 0x48], edi
ja 0x50cbd6
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x54]
add eax, 0x18
add eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00513160
test eax, eax
je 0x50cc37
cmp dword [esi + 0x48], edi
ja 0x50cbfb
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x50]
add ecx, 0x18
add ecx, dword [ebp - 0x3c]
call fcn.00545700
cmp eax, 7
jle 0x50cc37
cmp dword [esi + 0x48], edi
ja 0x50cc19
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
push 0
push 0
push 0x6229b8
add ecx, 0x18
add ecx, dword [esi + 0x50]
push 0x6229cc
call fcn.00542a40
jmp 0x50cc50
cmp dword [esi + 0x48], edi
ja 0x50cc42
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x18
add ecx, dword [esi + 0x50]
call fcn.00545760
inc edi
add dword [ebp - 0x3c], 0x24
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [esi + 0x34]
jg 0x50cc7d
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x54]
call fcn.00512c30
mov ecx, dword [ebp - 0x3c]
lea edx, [esi + 0x54]
test al, al
jne 0x50cad0
cmp edi, dword [esi + 0x34]
jge 0x50ccea
push ecx
push edi
lea ecx, [esi + 0x48]
call fcn.00403a90
jmp 0x50ccea
lea eax, [ebp - 0x20]
push eax
push 0x6229f8
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50ccea
push str.true
lea ecx, [ebp - 0x20]
call fcn.005457e0
test al, al
je 0x50ccbf
mov dword [esi + 0x30], 0
jmp 0x50ccea
lea eax, [esi + 0x24]
push eax
push 0x622a04
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50ccea
lea ecx, [esi + 0x24]
call fcn.00545700
cmp eax, 0x1e
jle 0x50ccea
mov dword [esi + 0x30], 1
mov edi, dword [esi + 0x30]
cmp edi, 1
jl 0x50cd7e
lea eax, [esi + 0xc]
push eax
push 0x622a10
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
lea eax, [ebp - 0x20]
push eax
push 0x622a24
push 0
lea ecx, [esi + 0x54]
call fcn.005130c0
test eax, eax
je 0x50cd2b
lea ecx, [ebp - 0x20]
call fcn.00544370
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x50cd59
xorps xmm0, xmm0
lea ecx, [esi + 0xc]
movsd qword [esi + 0x40], xmm0
call fcn.00545700
cmp eax, 0xa
jle 0x50cd7b
mov ecx, esi
call fcn.005451f0
test al, al
je 0x50cd7b
mov edi, 0xfffffffe
jmp 0x50cd7e
movd xmm1, dword [esi + 0x38]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x6e3320]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esi + 0x40], xmm1
mov edi, dword [esi + 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00545790
lea ecx, [ebp - 0x38]
call fcn.00545790
lea ecx, [ebp - 0x20]
call fcn.00545790
mov eax, edi
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.0041e465
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8