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

Disassembly:
mov eax, dword [0x680098]
sub esp, 0x1a0
mov eax, dword [eax + 0x10]
push ebx
push edi
mov edi, ecx
mov ecx, dword [0x658748]
add ecx, 0x64
cmp eax, ecx
jbe 0x4badd0
mov dword [0x658748], eax
mov eax, dword [0x619754]
inc eax
mov dword [0x619754], eax
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4badd0
mov dword [0x619754], 1
mov ecx, dword [0x68b19c]
call fcn.00543e60
mov ecx, dword [0x68b19c]
call fcn.00543e00
mov ecx, dword [edi + 0xc]
push 0xff
call fcn.005271d0
mov ecx, dword [0x680120]
mov eax, dword [ecx + 0x2e0]
push eax
call fcn.004df0d0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 8]
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x2c], ebx
jbe 0x4bb2f0
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x40], ebp
mov eax, dword [edi]
add eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
fld dword [esp + 0x2c]
fadd dword [0x5dee28]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fsub dword [esp + 0x70]
fld dword [esp + 0x2c]
fsub dword [esp + 0x74]
fld dword [esp + 0x30]
fsub dword [esp + 0x78]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x5e8304]
fnstsw ax
test ah, 5
jp 0x4bb2d1
fmul dword [0x5e80a4]
fcom dword [0x5f53f4]
fnstsw ax
and eax, 0x4100
jne 0x4baeb6
fstp st(0)
fld dword [0x5f53f4]
fld dword [0x5f53f4]
fsub st(1)
lea ecx, [esp + 0x38]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [0x6800cc]
lea eax, [esp + 0x2c]
push edx
fstp dword [esp + 0x44]
push eax
fstp st(0)
call fcn.004dbea0
test eax, eax
je 0x4baf8d
fld dword [esp + 0x3c]
fmul dword [0x5da6d0]
call fcn.0058c3f0
mov edx, dword [edi]
shl eax, 0x18
mov dx, word [edx + ebp + 0x1a]
mov ecx, eax
mov esi, eax
or ecx, 0xff0000
or esi, 0xff00
test dl, 0x20
je 0x4baf1c
or eax, 0xff00ff
push eax
jmp 0x4baf3d
test dl, 2
je 0x4baf34
cmp word [esp + 0x1b4], 0
je 0x4baf34
or eax, 0xffff
push eax
jmp 0x4baf3d
test dl, 1
je 0x4baf3c
push ecx
jmp 0x4baf3d
push esi
mov ecx, dword [edi + 0xc]
call fcn.00526e20
mov eax, dword [edi]
sub esp, 8
lea ecx, [esp + 0xb8]
fld dword [eax + ebp + 0xc]
fstp qword [esp]
push ebx
push str._d___.2f_
push ecx
call fcn.0058c396
fld dword [esp + 0x4c]
add esp, 0x14
push 0
call fcn.0058c3f0
fld dword [esp + 0x48]
push eax
call fcn.0058c3f0
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0xb8]
push eax
push edx
call fcn.00529490
fld dword [esp + 0x3c]
fmul dword [0x5da6d0]
call fcn.0058c3f0
shl eax, 0x18
mov ecx, eax
or eax, 0xffffff
or ecx, 0xffff00
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ecx
add ebp, 0x10
mov dword [esp + 0x54], 5
mov ebx, dword [edi]
xor ecx, ecx
mov cx, word [ebx + ebp]
cmp ecx, 0xffff
je 0x4bb29d
mov edx, dword [0x680100]
mov eax, ecx
and eax, 0xffff
cmp eax, dword [edx + 4]
jae 0x4baff1
mov esi, dword [edx]
shl eax, 5
add eax, esi
jmp 0x4baff3
xor eax, eax
xor edx, edx
add eax, 0x10
mov si, word [esp + 0x34]
cmp word [eax], si
je 0x4bb1a2
inc edx
add eax, 2
cmp edx, 5
jb 0x4baff8
mov esi, dword [esp + 0x7c]
shl ecx, 5
add ecx, ebx
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x44]
fld dword [esp + 0x20]
mov eax, dword [ecx + 8]
lea ecx, [esp + 0x38]
fadd dword [0x5dee28]
mov dword [esp + 0x24], eax
push ecx
mov ecx, dword [0x6800cc]
lea eax, [esp + 0x2c]
push edx
push eax
fstp dword [esp + 0x2c]
call fcn.004dbea0
test eax, eax
jne 0x4bb07a
lea ecx, [esp + 0x38]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [0x6800cc]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004dbea0
test eax, eax
je 0x4bb29d
push 0
push esi
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.005467b0
fld dword [esp + 0x30]
fsub dword [esp + 0x3c]
mov ecx, dword [0x680098]
add esp, 0x14
push 0x3e8
push 0xfa0
fstp dword [esp + 0x18]
fld dword [esp + 0x28]
fsub dword [esp + 0x34]
fstp dword [esp + 0x1c]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fstp dword [esp + 0x20]
call fcn.004be5d0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
fild qword [esp + 0x90]
fmul dword [0x5daf9c]
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(2)
fstp dword [esp + 0x9c]
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0xa0]
fadd dword [esp + 0x28]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x9c]
fadd dword [esp + 0x2c]
mov dword [esp + 0x84], eax
fstp dword [esp + 0x4c]
fld dword [esp + 0xa0]
fadd dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], ecx
fstp dword [esp + 0x50]
fld dword [esp + 0x10]
fcomp dword [0x60477c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x8c], edx
fnstsw ax
test ah, 0x44
jp 0x4bb1ae
fld dword [esp + 0x14]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4bb1ae
fld dword [esp + 0x18]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4bb1ae
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
fld dword [esp + 0x60]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
jmp 0x4bb1ea
mov esi, dword [esp + 0x80]
jmp 0x4bb013
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x5c]
fmul dword [esp + 0x18]
fld dword [esp + 0x58]
fmul dword [0x5da2d8]
fld dword [esp + 0x5c]
fmul dword [0x5da2d8]
fxch st(2)
fmul dword [0x5da2d8]
push 0
push esi
push esi
fstp dword [esp + 0xb8]
fld dword [esp + 0x54]
fsub st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x58]
fsub st(2)
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
fstp dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
push eax
fstp st(1)
fstp st(0)
fld dword [esp + 0x60]
fsub dword [esp + 0xbc]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x94]
push ecx
fstp dword [esp + 0x80]
fld dword [esp + 0x7c]
fadd dword [0x5da2e8]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x38], edx
fstp dword [esp + 0x34]
call fcn.005467b0
fld dword [esp + 0x34]
fsub dword [0x5da2d8]
push 0
push esi
lea edx, [esp + 0x38]
push esi
lea eax, [esp + 0xa4]
push edx
fstp dword [esp + 0x44]
push eax
call fcn.005467b0
add esp, 0x28
mov eax, dword [esp + 0x54]
add ebp, 2
dec eax
mov dword [esp + 0x54], eax
jne 0x4bafc2
cmp word [esp + 0x1b4], 2
jne 0x4bb2cb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, edi
call fcn.004ba550
mov ebp, dword [esp + 0x40]
jmp 0x4bb2d3
fstp st(0)
mov ebx, dword [esp + 0x34]
mov eax, dword [edi + 4]
inc ebx
add ebp, 0x20
cmp ebx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebp
jb 0x4bae32
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1a0
ret 4