Function at 0x5474b8
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 0x5477fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404a34
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0057b3c8
mov edx, edi
call fcn.00560f24
mov al, byte [eax + 0x30]
dec al
je 0x547516
sub al, 2
je 0x5477b9
jmp 0x5477de
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0057b3c8
mov edx, edi
call fcn.00560f24
cmp dword [eax + 0x20], 0
je 0x547558
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0057b3c8
mov edx, edi
call fcn.00560f24
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 8]
call fcn.00567b3c
mov eax, dword [eax + 0x30]
pop edx
call fcn.004b1ffc
mov dword [ebp - 8], eax
jmp 0x54757a
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0057b3c8
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebx + 8]
call fcn.00567b3c
mov eax, dword [eax + 0x30]
pop edx
call fcn.004b1ffc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5477de
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.00405c08
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x40]
cmp eax, 8
jg 0x5475c5
je 0x547641
add eax, 0xfffffffe
sub eax, 3
jb 0x5475d8
dec eax
sub eax, 2
jb 0x54773b
jmp 0x5477de
sub eax, 0xe
je 0x5475d8
sub eax, 0x17
je 0x5476be
jmp 0x5477de
mov eax, dword [ebp - 8]
mov edx, dword [0x4a0478]
call fcn.00403cf4
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404acc
cmp dword [ebp - 4], 0
jne 0x547622
lea eax, [ebp - 0x18]
call fcn.00405b8c
lea edx, [ebp - 0x118]
call fcn.00403374
lea edx, [ebp - 0x118]
mov eax, dword [ebp + 8]
call fcn.00404c90
jmp 0x5477de
lea eax, [ebp - 0x18]
call fcn.00405ba4
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040be14
jmp 0x5477de
mov eax, dword [ebp - 8]
mov edx, dword [0x4a1b6c]
call fcn.00403cf4
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404acc
cmp dword [ebp - 4], 0
jne 0x54769f
cmp byte [ebx + 0xe8], 0
je 0x54767b
mov bl, 4
mov esi, dword [0x70a8cc]
movzx esi, byte [esi]
jmp 0x54767f
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00405bac
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040bddc
jmp 0x5477de
lea eax, [ebp - 0x18]
call fcn.00405bac
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040be6c
jmp 0x5477de
mov eax, dword [ebp - 8]
mov edx, dword [0x4a1d70]
call fcn.00403cf4
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404acc
cmp dword [ebp - 4], 0
jne 0x54771c
cmp byte [ebx + 0xe8], 0
je 0x5476f8
mov bl, 4
mov esi, dword [0x70a8cc]
movzx esi, byte [esi]
jmp 0x5476fc
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00405bac
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040bddc
jmp 0x5477de
lea eax, [ebp - 0x18]
call fcn.00405bac
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040be6c
jmp 0x5477de
mov eax, dword [ebp - 8]
mov edx, dword [0x4a0bdc]
call fcn.00403cf4
mov edi, eax
lea eax, [ebp - 4]
mov edx, dword [edi + 0xe0]
call fcn.00404acc
cmp dword [ebp - 4], 0
jne 0x54779d
cmp byte [edi + 0xe8], 0
je 0x547775
mov bl, 4
mov esi, dword [0x70a8cc]
movzx esi, byte [esi]
jmp 0x547779
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00405ba4
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.0040bda4
jmp 0x5477de
lea eax, [ebp - 0x18]
call fcn.00405ba4
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040be14
jmp 0x5477de
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 [0x54780c]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.0040bd44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547803
lea eax, [ebp - 0x18]
call fcn.00405ce0
lea eax, [ebp - 4]
call fcn.00404a34
ret