Function at 0x5b1480
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5f03f0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov esi, dword [esp + 0xd4]
push esi
lea ecx, [esp + 0x40]
call fcn.00501a30
mov ebx, dword [esp + 0xd8]
push ebx
lea ecx, [esp + 0x68]
call fcn.00501a30
fild dword [esp + 0x3c]
lea eax, [ebx + 4]
push eax
fst qword [esp + 0x80]
lea ecx, [esp + 0x40]
fild dword [esp + 0x44]
fst qword [esp + 0x78]
fild dword [esp + 0x68]
fild dword [esp + 0x6c]
fmulp st(3)
fmulp st(1)
fsubp st(1)
fstp qword [esp + 0x30]
call fcn.00502310
lea edi, [ebx + 0xc]
push edi
lea ecx, [esp + 0x40]
movzx ebp, ax
call fcn.00502310
movzx eax, ax
fld qword [esp + 0x2c]
sub esp, 8
mov dword [esp + 0x20], eax
fstp qword [esp]
call fcn.004fa780
add esp, 8
test eax, eax
jne 0x5b16ad
cmp bp, 2
jne 0x5b1543
cmp word [esp + 0x18], bp
je 0x5b16ad
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
lea ebp, [esi + 0xc]
push ecx
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.0050a800
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xdc], 0
call fcn.0050a800
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xd8], 1
call fcn.0050abb0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x5b1665
mov ecx, dword [edi]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x4c], ecx
push 0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x58], ebx
call fcn.0050ac40
test eax, eax
je 0x5b160a
mov edx, dword [edi]
mov eax, dword [esp + 0xdc]
mov dword [eax], edx
mov edi, dword [edi + 4]
mov dword [esp + 0x14], 1
mov dword [eax + 4], edi
jmp 0x5b1679
push 0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xa8]
call fcn.0050ac40
test eax, eax
je 0x5b163d
mov ecx, dword [ebp]
mov eax, dword [esp + 0xdc]
mov dword [eax], ecx
mov ebp, dword [ebp + 4]
mov dword [esp + 0x14], 1
mov dword [eax + 4], ebp
jmp 0x5b1679
push edi
mov ecx, ebp
call fcn.00456a80
test eax, eax
je 0x5b1679
mov edx, dword [ebp]
mov eax, dword [esp + 0xdc]
mov dword [eax], edx
mov ebp, dword [ebp + 4]
mov dword [esp + 0x14], 1
mov dword [eax + 4], ebp
jmp 0x5b1679
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xcc], 0
call fcn.0050a7b0
lea ecx, [esp + 0x84]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0050a7b0
mov eax, dword [esp + 0x14]
jmp 0x5b18cb
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
push 0
lea eax, [ebx + 4]
mov dword [esp + 0x38], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.004f90f0
push 0
push edi
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004f90f0
mov dword [esp + 0x24], eax
lea eax, [esi + 4]
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.004f90f0
mov dword [esp + 0x28], eax
lea eax, [esi + 0xc]
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.004f90f0
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
sub esp, 8
fmul qword [esp + 0x84]
fild dword [esp + 0x24]
fmul qword [esp + 0x7c]
fsubp st(1)
fstp qword [esp]
call fcn.004fa780
add esp, 8
test eax, eax
jne 0x5b1769
cmp dword [esp + 0x14], eax
jne 0x5b1769
cmp dword [esp + 0x24], eax
jne 0x5b1769
cmp dword [esp + 0x28], eax
jne 0x5b1769
cmp dword [esp + 0x18], eax
je 0x5b18cb
lea eax, [ebx + 4]
push edi
push eax
xor ebp, ebp
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5b17c8
cmp dword [esp + 0x14], ebp
jne 0x5b1791
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.004f9700
test eax, eax
je 0x5b17a8
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0xdc]
mov dword [eax], ecx
mov edx, dword [ebx + 8]
mov ebp, 1
mov dword [eax + 4], edx
cmp dword [esp + 0x24], 0
jne 0x5b17bb
push edi
mov ecx, esi
call fcn.004f9700
test eax, eax
je 0x5b1823
mov eax, dword [esp + 0xdc]
lea eax, [eax + ebp*8]
inc ebp
jmp 0x5b1819
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push edi
mov ecx, esi
call edx
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 4]
push eax
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jg 0x5b1807
cmp dword [esp + 0x14], ebp
je 0x5b1823
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0xdc]
mov dword [eax], ecx
mov edx, dword [ebx + 8]
mov ebp, 1
jmp 0x5b1820
cmp dword [esp + 0x24], ebp
je 0x5b1823
mov eax, dword [esp + 0xdc]
mov ebp, 1
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
push edi
push esi
call fcn.004fa8a0
add esp, 8
test eax, eax
jne 0x5b1873
cmp dword [esp + 0x28], eax
jne 0x5b184b
push esi
mov ecx, ebx
call fcn.004f9700
test eax, eax
je 0x5b1860
mov eax, dword [esp + 0xdc]
mov ecx, dword [esi]
lea eax, [eax + ebp*8]
mov dword [eax], ecx
mov edx, dword [esi + 4]
inc ebp
mov dword [eax + 4], edx
cmp dword [esp + 0x18], 0
jne 0x5b18b4
push edi
mov ecx, ebx
call fcn.004f9700
test eax, eax
jmp 0x5b18b2
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
push esi
mov ecx, ebx
call edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
push edi
mov ecx, ebx
mov dword [esp + 0x30], eax
call edx
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x5b18ad
cmp dword [esp + 0x28], 0
je 0x5b18c9
mov eax, dword [esp + 0xdc]
mov ecx, dword [esi]
lea eax, [eax + ebp*8]
mov dword [eax], ecx
mov edx, dword [esi + 4]
jmp 0x5b18c5
cmp dword [esp + 0x18], 0
je 0x5b18c9
mov eax, dword [esp + 0xdc]
mov ecx, dword [edi]
lea eax, [eax + ebp*8]
mov dword [eax], ecx
mov edx, dword [edi + 4]
inc ebp
mov dword [eax + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret