Function at 0x52635c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5266a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004044b8
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0055b41c
mov edx, edi
call fcn.00541bc4
mov al, byte [eax + 0x30]
dec al
je 0x5263ba
sub al, 2
je 0x52665d
jmp 0x526682
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0055b41c
mov edx, edi
call fcn.00541bc4
cmp dword [eax + 0x20], 0
je 0x5263fc
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0055b41c
mov edx, edi
call fcn.00541bc4
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 8]
call fcn.005488ac
mov eax, dword [eax + 0x30]
pop edx
call fcn.004cc714
mov dword [ebp - 8], eax
jmp 0x52641e
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0055b41c
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebx + 8]
call fcn.005488ac
mov eax, dword [eax + 0x30]
pop edx
call fcn.004cc714
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x526682
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
imul edi
add esi, eax
mov eax, dword [ebx + 0x14]
fild qword [eax + esi*8]
lea eax, [ebp - 0x18]
call fcn.00415a28
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x40]
cmp eax, 8
jg 0x526469
je 0x5264e5
add eax, 0xfffffffe
sub eax, 3
jb 0x52647c
dec eax
sub eax, 2
jb 0x5265df
jmp 0x526682
sub eax, 0xe
je 0x52647c
sub eax, 0x17
je 0x526562
jmp 0x526682
mov eax, dword [ebp - 8]
mov edx, dword [0x4bc020]
call fcn.00403774
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404550
cmp dword [ebp - 4], 0
jne 0x5264c6
lea eax, [ebp - 0x18]
call fcn.00412010
lea edx, [ebp - 0x118]
call fcn.00402edc
lea edx, [ebp - 0x118]
mov eax, dword [ebp + 8]
call fcn.0040471c
jmp 0x526682
lea eax, [ebp - 0x18]
call fcn.00413960
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b164
jmp 0x526682
mov eax, dword [ebp - 8]
mov edx, dword [0x4bd714]
call fcn.00403774
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404550
cmp dword [ebp - 4], 0
jne 0x526543
cmp byte [ebx + 0xe8], 0
je 0x52651f
mov bl, 4
mov esi, dword [0x60e8d4]
movzx esi, byte [esi]
jmp 0x526523
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.004142bc
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040b12c
jmp 0x526682
lea eax, [ebp - 0x18]
call fcn.004142bc
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b1bc
jmp 0x526682
mov eax, dword [ebp - 8]
mov edx, dword [0x4bd918]
call fcn.00403774
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404550
cmp dword [ebp - 4], 0
jne 0x5265c0
cmp byte [ebx + 0xe8], 0
je 0x52659c
mov bl, 4
mov esi, dword [0x60e8d4]
movzx esi, byte [esi]
jmp 0x5265a0
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.004142bc
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040b12c
jmp 0x526682
lea eax, [ebp - 0x18]
call fcn.004142bc
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b1bc
jmp 0x526682
mov eax, dword [ebp - 8]
mov edx, dword [0x4bc784]
call fcn.00403774
mov edi, eax
lea eax, [ebp - 4]
mov edx, dword [edi + 0xe0]
call fcn.00404550
cmp dword [ebp - 4], 0
jne 0x526641
cmp byte [edi + 0xe8], 0
je 0x526619
mov bl, 4
mov esi, dword [0x60e8d4]
movzx esi, byte [esi]
jmp 0x52661d
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00413960
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
push eax
mov edx, dword [edi + 0xec]
mov ecx, esi
mov eax, ebx
call fcn.0040b0f4
jmp 0x526682
lea eax, [ebp - 0x18]
call fcn.00413960
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b164
jmp 0x526682
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
imul edi
add esi, eax
mov eax, dword [ebx + 0x14]
fild qword [eax + esi*8]
fdiv dword [0x5266b0]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.0040b094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5266a7
lea eax, [ebp - 0x18]
call fcn.004112f0
lea eax, [ebp - 4]
call fcn.004044b8
ret