Function at 0x57b4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57b7c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404ac8
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.005b0d60
mov edx, edi
call fcn.005975e8
mov al, byte [eax + 0x30]
dec al
je 0x57b4f3
sub al, 2
je 0x57b785
jmp 0x57b7aa
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.005b0d60
mov edx, edi
call fcn.005975e8
cmp dword [eax + 0x20], 0
je 0x57b535
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.005b0d60
mov edx, edi
call fcn.005975e8
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 8]
call fcn.0059e334
mov eax, dword [eax + 0x30]
pop edx
call fcn.004c2e34
mov dword [ebp - 8], eax
jmp 0x57b557
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.005b0d60
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebx + 8]
call fcn.0059e334
mov eax, dword [eax + 0x30]
pop edx
call fcn.004c2e34
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x57b7aa
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.00415e98
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x40]
cmp eax, 8
jg 0x57b5a2
je 0x57b60d
add eax, 0xfffffffe
sub eax, 3
jb 0x57b5b5
dec eax
sub eax, 2
jb 0x57b707
jmp 0x57b7aa
sub eax, 0xe
je 0x57b5b5
sub eax, 0x17
je 0x57b68a
jmp 0x57b7aa
mov eax, dword [ebp - 8]
mov edx, dword [0x4b1530]
call fcn.00403e08
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404b60
cmp dword [ebp - 4], 0
jne 0x57b5ee
lea eax, [ebp - 0x18]
call fcn.00412480
mov edx, dword [ebp + 8]
call fcn.00409b64
jmp 0x57b7aa
lea eax, [ebp - 0x18]
call fcn.00413dd0
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b554
jmp 0x57b7aa
mov eax, dword [ebp - 8]
mov edx, dword [0x4b2c24]
call fcn.00403e08
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404b60
cmp dword [ebp - 4], 0
jne 0x57b66b
cmp byte [ebx + 0xe8], 0
je 0x57b647
mov bl, 4
mov esi, dword [0x614b88]
movzx esi, byte [esi]
jmp 0x57b64b
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.0041472c
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040b51c
jmp 0x57b7aa
lea eax, [ebp - 0x18]
call fcn.0041472c
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b5ac
jmp 0x57b7aa
mov eax, dword [ebp - 8]
mov edx, dword [0x4b2e28]
call fcn.00403e08
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404b60
cmp dword [ebp - 4], 0
jne 0x57b6e8
cmp byte [ebx + 0xe8], 0
je 0x57b6c4
mov bl, 4
mov esi, dword [0x614b88]
movzx esi, byte [esi]
jmp 0x57b6c8
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.0041472c
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040b51c
jmp 0x57b7aa
lea eax, [ebp - 0x18]
call fcn.0041472c
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b5ac
jmp 0x57b7aa
mov eax, dword [ebp - 8]
mov edx, dword [0x4b1c94]
call fcn.00403e08
mov edi, eax
lea eax, [ebp - 4]
mov edx, dword [edi + 0xe0]
call fcn.00404b60
cmp dword [ebp - 4], 0
jne 0x57b769
cmp byte [edi + 0xe8], 0
je 0x57b741
mov bl, 4
mov esi, dword [0x614b88]
movzx esi, byte [esi]
jmp 0x57b745
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00413dd0
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.0040b4e4
jmp 0x57b7aa
lea eax, [ebp - 0x18]
call fcn.00413dd0
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b554
jmp 0x57b7aa
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 [0x57b7d8]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.0040b484
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b7cf
lea eax, [ebp - 0x18]
call fcn.00411760
lea eax, [ebp - 4]
call fcn.00404ac8
ret