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

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 0xfa4]
dec ebp
push edi
jns 0x636a48
add ebp, 0x64
test byte [0x833934], 1
jne 0x636a76
or dword [0x833934], 1
mov dword [0x833928], 0
mov dword [0x83392c], 0
mov dword [0x833930], 0
push ebp
mov ecx, esi
call fcn.00634cc0
mov edi, dword [esp + 0xec]
fld dword [edi]
mov ecx, dword [0x7a39fc]
fsub dword [eax]
mov ecx, dword [ecx + 8]
fld dword [edi + 4]
fsub dword [eax + 4]
fld dword [edi + 8]
fsub dword [eax + 8]
mov eax, dword [esi + 0xfa0]
fld st(0)
mov ebx, dword [eax + 0x24]
fmul st(1)
push ebx
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.004aea30
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
push eax
call fcn.004ae770
lea ecx, [esp + 0xac]
mov dword [esp + 0x10], eax
call fcn.00405ed0
mov eax, dword [esi + 0xfa8]
xor ecx, ecx
cmp eax, ecx
jne 0x636b0d
mov eax, edi
mov edx, dword [eax]
mov dword [0x833928], edx
mov edx, dword [eax + 4]
mov dword [0x83392c], edx
mov eax, dword [eax + 8]
mov dword [0x833930], eax
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x637043
mov dword [esp + 0x64], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x7f000000
mov eax, dword [eax + 0x340]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x14]
push ebp
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.00634cc0
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x14]
push 1
push edx
lea edx, [esp + 0x20]
push edx
push edi
push eax
lea eax, [esp + 0xc4]
push eax
push ebx
call fcn.004aee80
mov ebx, eax
cmp ebx, 1
je 0x636ca0
cmp ebx, 0xfffffffd
jne 0x636c36
mov eax, dword [esp + 0xa4]
cmp eax, 0x7f000000
je 0x636c36
mov ecx, dword [esi + 0xfa0]
push eax
call fcn.00634620
test eax, eax
jne 0x636ca0
mov eax, dword [esi + 0xfa4]
lea ecx, [eax + eax*4]
mov eax, dword [0x833928]
lea edx, [esi + ecx*8]
mov dword [edx], eax
mov ecx, dword [0x83392c]
mov dword [edx + 4], ecx
mov eax, dword [0x833930]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xfa4]
cmp eax, 0x63
jl 0x636c69
xor eax, eax
jmp 0x636c70
inc eax
mov dword [esi + 0xfa4], eax
mov dword [esi + 0xfa4], eax
mov ecx, edi
mov edx, dword [ecx]
mov dword [0x833928], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0xf0]
mov dword [0x83392c], eax
mov ecx, dword [ecx + 8]
mov dword [0x833930], ecx
mov dword [0x833924], edx
jmp 0x636cc8
mov eax, edi
mov ecx, dword [eax]
mov dword [0x833928], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0xf0]
mov dword [0x83392c], edx
mov eax, dword [eax + 8]
mov dword [0x833930], eax
mov dword [0x833924], ecx
fld dword [esp + 0x18]
fcomp qword [0x749d88]
fnstsw ax
test ah, 1
je 0x636ce2
cmp ebx, 1
je 0x637043
mov eax, dword [esi + 0xfa4]
fld dword [esp + 0xf0]
mov ecx, dword [edi]
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xfa4]
lea edx, [eax + eax*4]
fstp dword [esi + edx*8 + 0xc]
mov eax, dword [esi + 0xfa4]
cmp eax, 0x63
jl 0x636d21
xor eax, eax
jmp 0x636d28
inc eax
mov dword [esi + 0xfa4], eax
mov ecx, dword [esi + 0xfa8]
cmp ecx, 0x64
mov dword [esi + 0xfa4], eax
jge 0x636d40
inc ecx
mov dword [esi + 0xfa8], ecx
cmp dword [esi + 0xfa8], 3
jl 0x637043
dec eax
test eax, eax
jge 0x636d55
add eax, 0x64
lea ecx, [eax + eax*4]
dec eax
fld dword [esi + ecx*8 + 0xc]
fstp dword [esp + 0x18]
jns 0x636d66
add eax, 0x64
mov ebx, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov ecx, dword [esi + edx*8 + 0xc]
lea eax, [esi + edx*8]
mov dword [esp + 0x10], eax
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edi, 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x3f800000
lea esp, [esp]
mov eax, dword [esi + 0xfa0]
mov ecx, edi
imul ecx, ecx, 0x88
lea edx, [ecx + eax + 0x5c]
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov ecx, dword [edx + 4]
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ecx
mov edx, dword [edx + 8]
push eax
push ebp
mov dword [esp + 0x5c], edx
call fcn.004a96d0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
fstp dword [esp]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x5c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
lea ecx, [esp + 0xec]
call fcn.004ac960
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004a9bb0
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push ebx
call fcn.004a96d0
fstp dword [esp]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
lea ecx, [esp + 0xdc]
mov dword [edx + 8], eax
call fcn.004ac960
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.004a9bb0
fld dword [esp + 0x64]
fadd dword [esp + 0x34]
add esp, 0xc
cmp edi, 1
fstp dword [esp + 0x1c]
fld dword [esp + 0x5c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x20]
fld dword [esp + 0x60]
fadd dword [esp + 0x30]
fstp dword [esp + 0x24]
jne 0x636ec1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edx, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x636edc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 0x1c
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
inc edi
cmp edi, 3
jl 0x636dd0
mov eax, dword [0x7a2418]
test eax, eax
je 0x636f6a
mov eax, dword [esi + 0xfa0]
cmp dword [eax], 1
jle 0x636f6a
push 1
mov ecx, esi
call fcn.00634da0
push eax
mov ecx, esi
call fcn.00634e00
fcomp dword [0x747c3c]
fnstsw ax
test ah, 1
je 0x636f63
mov ecx, dword [esi + 0xfa0]
mov edx, dword [ecx]
cmp edx, 2
jne 0x636f38
fld dword [ecx + 0xf4]
fcomp dword [0x741838]
fnstsw ax
test ah, 1
je 0x636f63
cmp edx, 3
jne 0x636f6a
fld dword [ecx + 0xf4]
fcomp dword [0x741838]
fnstsw ax
test ah, 1
jne 0x636f6a
fld dword [ecx + 0x17c]
fcomp dword [0x741838]
fnstsw ax
test ah, 1
jne 0x636f6a
mov ecx, esi
call fcn.00635af0
mov ecx, dword [esi + 0xfa0]
mov eax, dword [ecx + 0xac]
cmp eax, 0x7f000000
je 0x636fd6
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
push eax
call fcn.004aea30
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
call fcn.004ae770
test eax, eax
je 0x636fd6
push 0x3d
mov ecx, eax
call fcn.005188e0
test eax, eax
jne 0x636fd6
mov eax, dword [esi + 0xfa0]
mov edx, dword [eax + 0xe0]
add eax, 0xac
lea ecx, [eax + 0x28]
mov dword [eax + 0x24], edx
mov edx, dword [ecx]
add eax, 0x18
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xfa0]
mov eax, dword [edx + 0x134]
cmp eax, 0x7f000000
je 0x637043
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
call fcn.004aea30
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
push eax
call fcn.004ae770
test eax, eax
je 0x637043
push 0x3d
mov ecx, eax
call fcn.005188e0
test eax, eax
jne 0x637043
mov esi, dword [esi + 0xfa0]
mov eax, dword [esi + 0x168]
add esi, 0x134
lea ecx, [esi + 0x28]
mov edx, dword [ecx]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add esi, 0x18
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 0xc