Function at 0x52af1c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3b40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5321c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x53acf4]
mov ecx, 0x53acf4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 8]
push 0x50ef68
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov dword [esp + 0x48], esi
call fcn.004faf44
lea edi, [ebx + 0x30]
mov byte [esp + 0x40], 1
call fcn.004fb6eb
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004f7bea
lea edi, [ebx + 0x4c]
mov ecx, dword [edi]
cmp ecx, esi
je 0x52afa5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], esi
mov ecx, dword [ebp + 8]
push 0x5106f0
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004faf44
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
cmp eax, esi
jle 0x52b027
push ecx
push dword [0x53c91c]
lea eax, [esp + 0x18]
push 0x50de70
call fcn.004fb6a0
add esp, 0xc
push dword [esp + 0x10]
call fcn.0052aed7
mov eax, dword [edi]
cmp eax, esi
pop ecx
je 0x52b027
mov esi, eax
call fcn.00522f7e
mov esi, dword [edi]
mov dword [esp + 0x2c], eax
call fcn.00522f9e
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
jne 0x52b027
test eax, eax
jne 0x52b027
mov ecx, dword [edi]
test ecx, ecx
je 0x52b027
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi], 0
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
call fcn.00507ad8
push 0x511098
xor ecx, ecx
lea esi, [esp + 0x20]
mov byte [esp + 0x44], 3
call fcn.00507d28
test eax, eax
je 0x52b062
mov eax, esi
push eax
mov ecx, 0x5110ac
call fcn.004f8770
test eax, eax
jne 0x52b129
mov ecx, dword [ebp + 8]
push 0
push 0x5110c0
call fcn.004fae89
and dword [esp + 0x14], 0
test eax, eax
mov dword [esp + 0x28], eax
jle 0x52b129
mov eax, dword [0x53acf4]
mov ecx, 0x53acf4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x5110d4
mov byte [esp + 0x48], 4
call fcn.004fb6a0
pop ecx
pop ecx
push dword [esp + 0x18]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
call fcn.004faf44
mov byte [esp + 0x40], 5
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push dword [0x53c91c]
push 0x50de70
call fcn.004fb6a0
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
call fcn.0052aed7
cmp dword [edi], 0
pop ecx
je 0x52b0fe
mov eax, dword [ebx]
push 0
push dword [esp + 0x18]
mov ecx, ebx
push esi
call dword [eax + 0x20]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004f7bea
lea eax, [esi - 0x10]
mov byte [esp + 0x40], 3
call fcn.004f7bea
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jl 0x52b082
fldz
mov esi, dword [ebp + 8]
push ecx
fstp dword [esp]
push 0x5110e4
mov ecx, esi
call fcn.00527164
fstp dword [ebx + 0x1c]
fldz
push ecx
fstp dword [esp]
mov ecx, esi
push 0x5110e8
call fcn.00527164
fstp dword [ebx + 0x20]
fldz
push ecx
fstp dword [esp]
mov ecx, esi
push 0x50fa98
call fcn.00527164
fstp dword [ebx + 0x24]
fldz
push ecx
fstp dword [esp]
mov ecx, esi
push 0x50faa4
call fcn.00527164
fstp dword [esp + 0x18]
cmp dword [ebx + 0x50], 2
fld dword [esp + 0x18]
fstp dword [ebx + 0x28]
fld1
je 0x52b1e0
fld dword [ebx + 0x24]
fld qword [0x51be20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld qword [0x51bb30]
jp 0x52b1bd
fld dword [ebx + 0x24]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x52b1bd
fxch st(2)
fst dword [ebx + 0x24]
fxch st(2)
fld dword [esp + 0x18]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x52b1de
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x52b1e0
fstp dword [ebx + 0x28]
jmp 0x52b1e2
fstp st(0)
fstp st(0)
and dword [ebx + 0x18], 0
push 0x5110ec
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004faf44
lea edi, [esp + 0x10]
mov byte [esp + 0x40], 6
call fcn.004fb6eb
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004f7bea
mov edi, dword [esp + 0x10]
mov esi, 0x511104
push esi
push edi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b232
or dword [ebx + 0x18], 4
jmp 0x52b28c
push 0x511114
push edi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b249
or dword [ebx + 0x18], 0x14
jmp 0x52b28c
push 0x4fa798
push edi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b260
or dword [ebx + 0x18], 1
jmp 0x52b28c
push 0x511134
push edi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b277
or dword [ebx + 0x18], 0x10
jmp 0x52b28c
push 0x511144
push edi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b28c
or dword [ebx + 0x18], 0x40
mov ecx, dword [ebp + 8]
push 0x511150
lea eax, [esp + 0x2c]
push eax
call fcn.004faf44
lea edi, [esp + 0x10]
mov byte [esp + 0x40], 7
call fcn.004fb6eb
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004f7bea
push esi
mov esi, dword [esp + 0x14]
push esi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b2d4
or dword [ebx + 0x18], 8
jmp 0x52b31a
push 0x4fa7a4
push esi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b2eb
or dword [ebx + 0x18], 2
jmp 0x52b31a
push 0x511134
push esi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b302
or dword [ebx + 0x18], 0x20
jmp 0x52b31a
push 0x511144
push esi
call 0x5b9c66
test eax, eax
pop ecx
pop ecx
jne 0x52b31a
or dword [ebx + 0x18], 0x80
mov ecx, dword [ebp + 8]
and dword [ebx + 0x54], 0
push 0x511164
lea eax, [esp + 0x2c]
push eax
call fcn.004faf44
lea edi, [esp + 0x10]
mov byte [esp + 0x40], 8
call fcn.004fb6eb
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004f7bea
mov esi, dword [esp + 0x10]
push 0x511174
push esi
call 0x5b9c66
xor edi, edi
pop ecx
inc edi
test eax, eax
pop ecx
jne 0x52b36a
mov dword [ebx + 0x54], edi
mov ecx, dword [ebp + 8]
push 0
push 0x50fe88
call fcn.0051a70b
fldz
fcom dword [ebx + 0x24]
mov dword [ebx + 0x60], eax
fnstsw ax
test ah, 0x44
jp 0x52b3a0
mov eax, dword [ebx + 0x50]
dec eax
dec eax
jne 0x52b3a0
test byte [ebx + 0x18], 0x50
je 0x52b399
fld1
jmp 0x52b39d
fild dword [esp + 0x2c]
fstp dword [ebx + 0x24]
fcomp dword [ebx + 0x28]
fnstsw ax
test ah, 0x44
jp 0x52b3c2
mov eax, dword [ebx + 0x50]
dec eax
dec eax
jne 0x52b3c2
test byte [ebx + 0x18], 0xa0
je 0x52b3bb
fld1
jmp 0x52b3bf
fild dword [esp + 0x30]
fstp dword [ebx + 0x28]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
call fcn.0052bfa8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [ebx + 0x14], edi
call fcn.004f7bea
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004f7bea
lea eax, [esi - 0x10]
call fcn.004f7bea
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8