Function at 0x50c300
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 0x5f27f0
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.005451e0
mov ecx, esi
call fcn.005451e0
lea ecx, [esi + 0xc]
call fcn.005451e0
lea ecx, [esi + 0x24]
call fcn.005451e0
push ecx
push 0
lea ecx, [esi + 0x48]
call fcn.00403a90
mov ecx, edi
call fcn.00541aa0
cmp eax, 0xa
jge 0x50c3a5
mov eax, dword [esi + 0x30]
jmp 0x50c818
push ecx
lea ecx, [esi + 0x54]
call fcn.005133a0
test al, al
je 0x50c39d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.005453c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
call fcn.005453c0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005453c0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 0x6228e4
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c424
lea ecx, [ebp - 0x20]
call fcn.00543df0
mov dword [esi + 0x34], eax
lea eax, [ebp - 0x20]
push eax
push 0x6228f0
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c70e
lea ecx, [ebp - 0x20]
call fcn.00543df0
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x54]
lea eax, [esi + 0x18]
push eax
push 0x62290c
push 0
call fcn.00512b40
lea eax, [esi + 0x24]
push eax
push 0x622924
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c480
lea ecx, [esi + 0x24]
call fcn.00544c70
test al, al
je 0x50c4b6
lea eax, [esi + 0x24]
push eax
push 0x62292c
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c4a3
lea ecx, [esi + 0x24]
call fcn.00544c70
test al, al
je 0x50c4b6
lea eax, [esi + 0x24]
push eax
push 0x622934
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
mov edi, dword [esi + 0x30]
cmp edi, 1
jl 0x50c7fe
push esi
push 0x622948
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
mov ecx, esi
call fcn.00544f70
mov ecx, eax
call fcn.00506580
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x34]
test eax, eax
jle 0x50c76a
test byte [ebx + 0xc], 1
jne 0x50c76a
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 0x62295c
movups xmmword [ebp - 0x54], xmm0
call fcn.00512dc0
test al, al
je 0x50c6fd
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x54]
call fcn.005126b0
test al, al
je 0x50c6fd
xor ecx, ecx
lea edx, [esi + 0x54]
mov dword [ebp - 0x3c], ecx
nop
cmp dword [esi + 0x48], edi
ja 0x50c55b
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.00512c50
test al, al
je 0x50c6d5
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x622968
lea ecx, [esi + 0x54]
call fcn.00512dc0
test al, al
je 0x50c6d5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x54]
call fcn.00512be0
test eax, eax
je 0x50c6d5
push str.true
lea ecx, [ebp - 0x20]
call fcn.005452a0
test al, al
je 0x50c614
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x62297c
lea ecx, [esi + 0x54]
call fcn.00512dc0
cmp dword [esi + 0x48], edi
ja 0x50c5da
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.00512be0
cmp dword [esi + 0x48], edi
ja 0x50c5fd
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.005452a0
test al, al
je 0x50c632
cmp dword [esi + 0x48], edi
ja 0x50c61f
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0xc
add ecx, dword [esi + 0x50]
push 0x62298c
call fcn.005452f0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x622998
lea ecx, [esi + 0x54]
call fcn.00512dc0
test al, al
je 0x50c6b7
cmp dword [esi + 0x48], edi
ja 0x50c656
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.00512be0
test eax, eax
je 0x50c6b7
cmp dword [esi + 0x48], edi
ja 0x50c67b
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x50]
add ecx, 0x18
add ecx, dword [ebp - 0x3c]
call fcn.00545180
cmp eax, 7
jle 0x50c6b7
cmp dword [esi + 0x48], edi
ja 0x50c699
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
push 0
push 0
push 0x6229a8
add ecx, 0x18
add ecx, dword [esi + 0x50]
push 0x6229bc
call fcn.005424c0
jmp 0x50c6d0
cmp dword [esi + 0x48], edi
ja 0x50c6c2
lea eax, [edi + 1]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x18
add ecx, dword [esi + 0x50]
call fcn.005451e0
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 0x50c6fd
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x54]
call fcn.005126b0
mov ecx, dword [ebp - 0x3c]
lea edx, [esi + 0x54]
test al, al
jne 0x50c550
cmp edi, dword [esi + 0x34]
jge 0x50c76a
push ecx
push edi
lea ecx, [esi + 0x48]
call fcn.00403a90
jmp 0x50c76a
lea eax, [ebp - 0x20]
push eax
push 0x6229e8
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c76a
push str.true
lea ecx, [ebp - 0x20]
call fcn.00545260
test al, al
je 0x50c73f
mov dword [esi + 0x30], 0
jmp 0x50c76a
lea eax, [esi + 0x24]
push eax
push 0x6229f4
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c76a
lea ecx, [esi + 0x24]
call fcn.00545180
cmp eax, 0x1e
jle 0x50c76a
mov dword [esi + 0x30], 1
mov edi, dword [esi + 0x30]
cmp edi, 1
jl 0x50c7fe
lea eax, [esi + 0xc]
push eax
push 0x622a00
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
lea eax, [ebp - 0x20]
push eax
push 0x622a14
push 0
lea ecx, [esi + 0x54]
call fcn.00512b40
test eax, eax
je 0x50c7ab
lea ecx, [ebp - 0x20]
call fcn.00543df0
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x50c7d9
xorps xmm0, xmm0
lea ecx, [esi + 0xc]
movsd qword [esi + 0x40], xmm0
call fcn.00545180
cmp eax, 0xa
jle 0x50c7fb
mov ecx, esi
call fcn.00544c70
test al, al
je 0x50c7fb
mov edi, 0xfffffffe
jmp 0x50c7fe
movd xmm1, dword [esi + 0x38]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x6e3328]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esi + 0x40], xmm1
mov edi, dword [esi + 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00545210
lea ecx, [ebp - 0x38]
call fcn.00545210
lea ecx, [ebp - 0x20]
call fcn.00545210
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