Function at 0x4b7790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1f4
mov eax, dword [0x566148]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [edx]
mov dword [esp + 0x48], ecx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
cmp eax, ebx
jle 0x4b77f0
add edx, 4
cmp dword [edx], esi
je 0x4b78b2
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4b77e0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov esi, dword [edi + 0x1c]
mov edi, dword [edi + 0x14]
lea edx, [edi + edi*4]
lea eax, [esi + edx*8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], esi
cmp esi, eax
jae 0x4b79ee
mov ebx, dword [ebp + 0x18]
jmp 0x4b7820
fldz
mov eax, 0x100
cmp word [esi + 0x10], ax
jne 0x4b79db
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
not eax
and eax, dword [esi + 0x20]
not ecx
and ecx, dword [esi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, ebx
or eax, ecx
jne 0x4b79db
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x160]
mov edx, dword [ecx + 0x164]
and eax, dword [esp + 0x30]
and edx, dword [esp + 0x34]
or eax, edx
je 0x4b79db
mov edi, dword [ecx + 0x1c]
fld st(0)
mov ecx, dword [ecx + 0x14]
fst qword [esp + 0x60]
lea ecx, [ecx + ecx*4]
fxch st(1)
lea eax, [edi + ecx*8]
fst qword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
cmp edi, eax
jae 0x4b7984
mov edx, 0x200
cmp word [edi + 0x10], dx
jne 0x4b78cb
mov eax, dword [ebp + 0x14]
mov edx, dword [edi + 0xc]
push ebx
push eax
jmp 0x4b7915
mov eax, 1
xor edx, edx
call fcn.004f00f0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x4b77f8
mov ecx, dword [esp + 0x68]
cmp dword [edi + 8], ecx
jne 0x4b7979
mov eax, dword [esp + 0x6c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
mov byte [esp + 0xac], 0x45
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb0], 1
push ecx
lea edx, [esp + 0xa0]
mov eax, dword [esp + 0x4c]
fstp st(1)
mov esi, dword [esp + 0x48]
fstp st(0)
lea ecx, [esp + 0x78]
call fcn.004b8490
fld qword [esp + 0x88]
fadd qword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x9c]
or dword [esp + 0x34], eax
mov edx, dword [esp + 0x98]
fst qword [esp + 0x68]
fld qword [esp + 0x90]
or dword [esp + 0x30], edx
fadd qword [esp + 0x58]
mov esi, dword [esp + 0x44]
add esp, 8
fst qword [esp + 0x50]
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jnp 0x4b7984
mov eax, dword [esp + 0x4c]
add edi, 0x28
cmp edi, eax
jb 0x4b789d
cmp dword [ebp + 0x1c], 0
je 0x4b79a8
fstp st(1)
sub esp, 8
fstp qword [esp]
call fcn.004b7740
fld qword [esp + 0x58]
add esp, 8
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0x60]
fxch st(1)
mov ecx, dword [esp + 0x48]
fld qword [ecx + 0x10]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4b79d9
mov edx, dword [esp + 0x28]
fxch st(1)
mov eax, dword [esp + 0x2c]
fstp qword [ecx + 0x10]
mov dword [ecx + 0x20], edx
fstp qword [ecx + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 8], esi
jmp 0x4b79dd
fstp st(1)
fstp st(0)
add esi, 0x28
mov dword [esp + 0x3c], esi
cmp esi, dword [esp + 0x5c]
jb 0x4b7820
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e8965
mov esp, ebp
pop ebp
ret